<template>
<div class="scaling">
    <div class="top">
        <div class="cont">
            <div class="lt">
                <span>定标定样 > </span>{{currentProject.itemName}}
                <span class="rte" style="cursor:pointer" @click="exportBigTable()">导出产品性能大表</span>
            </div>
        </div>
    </div>
    <div class="crnot">
        <div class="cont wid100">
            <div class="lt">
                <el-form :inline="true">
                    <!-- <el-form-item label="灯参类型:" class="desz">
                        <span style="cursor:pointer" @click="changeType(1)" :class="leftRequest.contrastType == 1 ? 'active' :''">定标</span>
                        <span style="cursor:pointer" @click="changeType(2)" :class="leftRequest.contrastType == 2 ? 'active' :''">定样</span>
                    </el-form-item> -->
                    <el-form-item label="灯参编号:" class="witd">
                        <el-input v-model="leftRequest.lampparamNoLike " ></el-input>
                    </el-form-item>
                    <el-form-item label="定标定样:" class="witd1">
                        <el-select v-model="leftRequest.contrastType">
                            <el-option label="全部" value="">全部</el-option>
                            <el-option label="定标灯参" value="1">定标灯参</el-option>
                            <el-option label="定样灯参" value="2">定样灯参</el-option>
                        </el-select>
                    </el-form-item>
                    <el-form-item>
                        <el-button type="primary" @click="getLeftList()">查询</el-button>
                    </el-form-item>
                </el-form>
                <div class="lt_cont">
                    <el-button type="button" class="btn" @click="showAddLeftView()">添加</el-button>
                    <el-button class="btn" @click="removeLeftTableData()">删除</el-button>
                    <el-button class="btn" @click="showDateSettingsView()">定标定样设置</el-button>
                    
                </div>
                <el-table ref="multipleTable" :data="lefttableData" :height="sdefc2" class="sdefc2"  @row-click="leftTableClickRow" highlight-current-row tooltip-effect="dark" border style="width: 100%"  @selection-change="handleSelectionChangeLeftTable">
                    <el-table-column type="selection" width="40"></el-table-column>
                    <el-table-column prop="lampparamNo" label="灯参编号">
                        <template slot-scope="scope">
                            <div class="bianhao" @click.stop="showLampParamDetail(scope.row.lampparamId)">
                                {{scope.row.lampparamNo }}
                            </div>
                        </template>
                    </el-table-column>
                    <el-table-column prop="startDate" label="定标定样" width="100">
                        <template slot-scope="scope">
                            {{scope.row.contrastType == 1 ? '定标' : '定样'}}
                        </template>
                    </el-table-column>
                    <el-table-column prop="startDate" label="开始时间" width="100">
                        <template slot-scope="scope">
                            {{dataTimeFormat(scope.row.startDate)}}
                        </template>
                    </el-table-column>
                    <el-table-column prop="endDate" label="结束时间" width="100">
                        <template slot-scope="scope">
                            {{dataTimeFormat(scope.row.endDate)}}
                        </template>
                    </el-table-column>
                    <el-table-column label="征集品牌" width="190" >
                        <template slot-scope="scope">
                            <div class="cmy">
                                <span>{{ scope.row.collectBrandNames }}</span>
                                <el-button @click.stop="showEditZhengjiView(scope.row)">编辑</el-button>  
                            </div>
                        </template>
                    </el-table-column>
                    <el-table-column label="评分" width="190" >
                        <template slot-scope="scope">
                            <div class="cmy">
                                <span>{{ scope.row.identicalLampparamNo }}</span>
                                <el-button @click.stop="showEditTongLeiLeft(scope.row)">同类灯参</el-button>  
                                <el-button v-show="scope.row.contrastType == 2" class="btn" @click.stop="showPingFenView(scope.row)">评分设定</el-button>
                            </div>
                        </template>
                    </el-table-column>
                    <el-table-column prop="createName" label="修改人"></el-table-column>
                </el-table>
                <el-pagination
                    @current-change="handleCurrentChangeLeftTable"
                    :current-page="leftRequest.page"
                    :page-size="10"
                    layout="total, prev, pager, next, jumper"
                    :total="lefttableCount"
                ></el-pagination>
            </div>
            
            <!--日期编辑 -->
            <el-dialog
                title="征灯日期调整"
                :visible.sync="showDateSettingsFlag"
                width="100"
                custom-class="addcustom addcustomdy riqi xcdxzz" v-dialogDrag>
                <div class="addcustom_cont">
                <el-form label-width="100px" class="demo-ruleForm">
                    <el-form-item label="定标定样" class="desazx">
                         <el-select v-model="dateSettingsContrastType">
                            <el-option label="定标灯参" value="1">定标灯参</el-option>
                            <el-option label="定样灯参" value="2">定样灯参</el-option>
                        </el-select>
                    </el-form-item>
                    <el-form-item label="开始时间" >
                            <el-form-item prop="date1">
                                <el-date-picker type="date" placeholder="选择日期" :picker-options="pickerOptionsStart" :clearable="false" v-model="dateSettingsBegin" @change="dateChangeBegin" format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width: 100%;"></el-date-picker>
                            </el-form-item>
                    </el-form-item>
                    <el-form-item label="结束时间" prop="delivery">
                        <el-form-item prop="date2">
                            <el-date-picker placeholder="选择日期" v-model="dateSettingsEnd" style="width: 100%;" :picker-options="pickerOptionsEnd" :clearable="false" @change="dateChangeEnd()" format="yyyy-MM-dd" value-format="yyyy-MM-dd"></el-date-picker>
                        </el-form-item>
                    </el-form-item>
                    <el-form-item>
                        <el-button type="primary" @click="saveSettingsDateTime()" style="margin: auto;display: block;">确定</el-button>
                    </el-form-item>
                    </el-form>
                </div>
            </el-dialog>

            <!--添加 定标定样 -->
            <el-dialog
                title="添加定标定样灯参"
                :visible.sync="showAddLeft"
                width="800"
                custom-class="addcustom addcustomdy" v-dialogDrag>
                <div class="addcustom_cont">
                <el-form :inline="true" class="demo-form-inline lampData">
                    <div class="lampData_top">
                        <el-form-item label="应用类型：" class="witd">
                            <el-select v-model="leftAddRequest.contestType"  style="width:100px">
                                    <el-option label="全部" value=""></el-option>
                                    <el-option v-for="item in typeList" :label="item.dictCont" :value="item.id" :key="item.id"></el-option>
                            </el-select>
                        </el-form-item>
                        <el-form-item label="灯参编号：" class="witd witds">
                            <el-input v-model="leftAddRequest.lampparamNoLike"  style="width:100px"></el-input>
                        </el-form-item>
                        <el-form-item label="功率(W)：" class="witd witds">
                            <el-input v-model="leftAddRequest.lampPowerMin" style="width:100px"></el-input> - 
                            <el-input v-model="leftAddRequest.lampPowerMax"  style="width:100px"></el-input>
                        </el-form-item>
                        <el-form-item class="dewd">
                            <el-button type="primary" @click="leftAddSearch(1)">查询</el-button>
                        </el-form-item>
                    </div>
                </el-form>
                    <div class="lt_cont" style="    text-align: right;">
                        <el-button class="btn" @click="CreateLeftTableData(1)">添加至定标灯参</el-button>
                        <el-button class="btn" @click="CreateLeftTableData(2)">添加至定样灯参</el-button>
                    </div>
                    <el-table  @selection-change="handleSelectionChangeLeftAddTable" :data="leftAddTableData"  height="435" border style="width:100%" >
                        <el-table-column type="selection" width="55"></el-table-column>
                        <el-table-column prop="projectLampparamVo.lampparamNo" label="灯参编号"></el-table-column>
                        <el-table-column prop="projectLampparamVo.contestTypeString" label="应用类型"></el-table-column>
                        <el-table-column prop="projectLampparamVo.lampTypeStr" label="灯具类型"></el-table-column>
                        <el-table-column prop="projectLampparamVo.lampPower" label="功率"></el-table-column>
                        <el-table-column prop="projectLampparamVo.colorTemperatureStr" label="色温"></el-table-column>
                        <el-table-column prop="projectLampparamVo.controlProtocol" label="控制"></el-table-column>
                    </el-table>
                    <el-pagination
                    @current-change="handleCurrentChangeLeftAddTable"
                    :current-page="leftAddRequest.page"
                    layout="total, prev, pager, next"
                    :total="leftAddTableCount"
                    :page-size="leftAddRequest.rows"
                    ></el-pagination>
                </div>
            </el-dialog>
            
            <!--编辑征集信息 -->
            <el-dialog
                title="征集邀请"
                :visible.sync="showEditZhengji"
                width="500"
                custom-class="addcustom zjyq" v-dialogDrag>
                <div class="addcustom_cont">
                    <el-form :inline="true" label-width="100px" class="demo-ruleForm">
                        <div class="lampData_top">
                            <el-form-item label="" class="witd witds">
                                <el-input placeholder="请输入内容" v-model="searchBrand" ></el-input>
                            </el-form-item>
                            <el-form-item class="dewd">
                                <el-button type="primary" @click="ClickSearchBrand()">搜索</el-button>
                            </el-form-item>
                        </div>
                    </el-form>
                </div>
                <div>
                    <div class="bukong_bom_list_cont">
                        <ul class="wid100">
                          <li
                            v-for="(item, index) in lampBrandList"
                            :data-index="index"
                            @click="chooseBrand(item,index)"
                            :key="index"
                            :class="{'active': item.delFlag == '1'}">
                            <div class="imgs">
                              <div class="BoxTable">
                                <div class="BoxCell">
                                    <img :src="ImgPath + item.brandLogo" >
                                    <label class="el-upload-list__item-status-label"><i class="el-icon-upload-success el-icon-check"></i></label>
                                </div>
                              </div>
                            </div>
                            <p>{{item.brandName}}</p>
                          </li>
                        </ul>
                      </div>
                        <div class="cont" v-show="chooselampBrandList.length>0"> 
                            <div class="title">已选品牌: </div> 
                            <span v-for="item in chooselampBrandList" :key="item.id" >{{item.brandName}} <i class="el-icon-close" @click="removeBrand(item)"></i></span>
                        </div>
                </div>
                <div>
                    <el-form :inline="true" label-width="100px" class="demo-form-inline">
                        <el-row >
                            <el-col :span="6">
                                <el-form-item label="项目名称：">
                                    <el-input v-model="currentEditTongLeiInfo.projectName" :disabled="true"></el-input>
                                </el-form-item></el-col>
                            <el-col :span="6">
                                <el-form-item label="项目编码：">
                                    <el-input v-model="currentEditTongLeiInfo.projectCode" :disabled="true"></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
                                <el-form-item label="对接人：">
                                    <el-input v-model="currentEditTongLeiInfo.linkMan" :disabled="showDefaultLink"></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
                                <el-form-item label="联系方式：">
                                    <el-input v-model="currentEditTongLeiInfo.linkPhone" :disabled="showDefaultLink"></el-input>
                                </el-form-item></el-col>
                        </el-row>
                        <el-row style="text-align: center;">
                            <el-col :span="24">
                            <el-form-item>
                                <el-button type="primary" @click="putBrand()">确认发送</el-button>
                            </el-form-item>
                            </el-col>
                        </el-row>
                    </el-form>
                </div>
            </el-dialog>

            <!--编辑同类灯参 -->
            <el-dialog
                :title="leftEditTongLeiTitle"
                :visible.sync="leftEditTongLeiView"
                width="600"
                custom-class="addcustom tonglei" v-dialogDrag>
                <div class="addcustom_cont">
                <el-form :inline="true" class="demo-form-inline lampData">
                    <div class="lampData_top">
                    <el-form-item label="应用类型：" class="witd">
                        <el-select v-model="leftAddRequest.contestType"  style="width:100px">
                                <el-option label="全部" value=""></el-option>
                                <el-option v-for="item in typeList" :label="item.dictCont" :value="item.id" :key="item.id"></el-option>
                        </el-select>
                    </el-form-item>
                    <el-form-item label="灯参编号：" class="witd witds">
                        <el-input v-model="leftAddRequest.lampparamNoLike"  style="width:100px"></el-input>
                    </el-form-item>
                    <el-form-item label="功率(W)：" class="witd witds">
                        <el-input v-model="leftAddRequest.lampPowerMin" style="width:100px"></el-input> - 
                        <el-input v-model="leftAddRequest.lampPowerMax"  style="width:100px"></el-input>
                    </el-form-item>
                    <el-form-item class="dewd">
                        <el-button type="primary" @click="leftAddSearch(1)">查询</el-button>
                    </el-form-item>
                </div>
                </el-form>
                    <div class="lt_cont" style="margin-bottom:12px;">
                        <span>已选同类灯参：</span>  <span style="border:1px solid #ccc;margin-right:5px;padding:5px;" v-for="item in leftCheckedList">{{item.name}} <span @click="removeEditTongLei(item)" style=" cursor: pointer;">x</span></span>
                    </div>
                    
                    <el-table  :data="leftAddTableData" border style="width:100%" >
                        <!-- <el-table-column type="selection" width="55"></el-table-column> -->
                        <el-table-column prop="projectLampparamVo.lampparamNo" label="灯参编号"></el-table-column>
                        <el-table-column prop="projectLampparamVo.contestTypeString" label="应用类型"></el-table-column>
                        <el-table-column prop="projectLampparamVo.lampTypeStr" label="灯具类型"></el-table-column>
                        <el-table-column prop="projectLampparamVo.lampPower" label="功率(W)"></el-table-column>
                        <el-table-column prop="projectLampparamVo.colorTemperatureStr" label="色温"></el-table-column>
                        <el-table-column prop="projectLampparamVo.controlProtocol" label="控制协议"></el-table-column>
                        <el-table-column label="操作">
                            <template slot-scope="scope">
                                <span style="cursor:pointer" v-show="tongleiSFView(scope.row.lampparamId)" @click="CreateTongLei(scope.row)">添加</span>
                            </template>
                        </el-table-column>
                    </el-table>
                    <el-pagination
                    @current-change="handleCurrentChangeLeftAddTable"
                    :current-page="leftAddRequest.page"
                    layout="total, prev, pager, next"
                    :total="leftAddTableCount"
                    ></el-pagination>
                </div>
            </el-dialog>

            <el-dialog
                    width="600"
                    title="评分设定"
                    :visible.sync="showPingFen2"
                    append-to-body
                    custom-class="addcustom addcustomdy pfxsd" v-dialogDrag>
                    <el-form :inline="true" class="demo-form-inline lampData">
                        <div class="lampData_top">
                            <el-form-item label="评分项：" class="witd witds">
                                <el-select v-model="choosePingFenXiang" @change="ChangePingFenXiang" multiple collapse-tags>
                                    <el-option v-for="item in pingfenSelList" :value="item.indexName" :key="item.id" v-html="item.indexName"></el-option>
                                </el-select>
                            </el-form-item>
                            <el-form-item label="算法类型：" class="witd witds">
                                <el-select v-model="evaluateAddViewcalculateType">
                                    <el-option value="1" label="插值法"></el-option>
                                    <el-option value="2" label="正态分布"></el-option>
                                </el-select>
                            </el-form-item>
                        </div>
                    </el-form>
                    <div style="float:right">
                        <el-checkbox v-model="cankao1" @change="cankao11()">参考灯参</el-checkbox>
                        <el-checkbox v-model="cankao2" @change="cankao22()">参考检测数据</el-checkbox>
                    </div>
                    <el-table :data="pingfenTableData2"  height="435" border style="width:100%" >
                        <el-table-column type="index" label="序号" width="50"> </el-table-column>
                        <el-table-column prop="evaluateText" label="评分项">
                            <template slot-scope="scope">
                                <span v-html="scope.row.evaluateText"></span>
                            </template>
                        </el-table-column>
                        <el-table-column label="高分值">
                            <template slot-scope="scope">
                                <el-input v-model="scope.row.highScore"></el-input>
                            </template>
                        </el-table-column>
                        <el-table-column  label="效果数据">
                            <template slot-scope="scope">
                                <el-input v-model="scope.row.highIndexScore"></el-input>
                            </template>
                        </el-table-column>
                        <el-table-column label="低分值">
                            <template slot-scope="scope">
                                <el-input v-model="scope.row.lowScore"></el-input>
                            </template>
                        </el-table-column>
                        <el-table-column  label="效果数据">
                            <template slot-scope="scope">
                                <el-input v-model="scope.row.lowIndexScore"></el-input>
                            </template>
                        </el-table-column>
                        <el-table-column  label="权重">
                            <template slot-scope="scope">
                                <el-input v-model="scope.row.weightScale"  onkeyup="value=value.replace(/[^\d]/g,'')"></el-input>
                            </template>
                        </el-table-column>
                    </el-table>
                    <span slot="footer" class="dialog-footer">
                        <el-button @click="saveAddPingFen()">保存</el-button>
                    </span>
                </el-dialog>

            <!--评分项设定 -->
            <el-dialog
                title="评分项设定"
                :visible.sync="showPingFen1"
                width="800"
                custom-class="addcustom addcustomdy pfxsd" v-dialogDrag>
                <div class="addcustom_cont">
                <el-form :inline="true" class="demo-form-inline lampData">
                    <div class="lampData_top">
                        <el-form-item label="灯参编号：" class="witd witds">
                            <el-input v-model="pingfenRequest1.lampparamNoLike"  style="width:100px"></el-input>
                        </el-form-item>
                        <el-form-item class="dewd">
                            <el-button type="primary" @click="pingfenList1(1)">查询</el-button>
                        </el-form-item>
                    </div>
                </el-form>
                    <div class="lt_cont" style="    text-align: right;">
                        <el-button class="btn" @click="showAddPingFenView()">添加评分标准</el-button>
                        <el-button class="btn" @click="showEditPingFenView()">参评灯参</el-button>
                    </div>
                    <el-table :highlight-current-row="true"  @row-click="PingFenclickRow" :data="pingfenTableData1"  height="435" border style="width:100%" >
                        <el-table-column type="index" label="序号" width="50"> </el-table-column>
                        <el-table-column prop="projectLampparamVo.lampparamNo" label="评分标准">
                            <template slot-scope="scope">
                                <div v-for="(item,index) in scope.row.evaluateStandList" :key="index">
                                    {{getPingFenZhiBiaoTitle(item.evaluateIndex)}}
                                    {{item.highIndexScore}}：{{item.highScore}}分、
                                    {{item.lowIndexScore}}：{{item.lowScore}}分、
                                    权重：{{item.weightScale}}
                                </div>
                            </template>
                        </el-table-column>
                        <el-table-column prop="lampparamNos" label="参评灯参"></el-table-column>
                        <el-table-column prop="projectLampparamVo.lampType" label="算法类型">
                            <template slot-scope="scope">
                                {{scope.row.calculateType == 1 ? '插值法' : '正态分布'}}
                            </template>
                        </el-table-column>
                        <el-table-column prop="projectLampparamVo.lampPower" label="操作">
                            <template slot-scope="scope">
                                <div class="btn"> 
                                    <span @click="editPingFen(scope.row)">修改</span>
                                    <span @click="deletePingFen(scope.row)">删除</span>
                                </div>
                            </template>
                        </el-table-column>
                    </el-table>
                    <span slot="footer" class="dialog-footer">
                        <el-button @click="showPingFen1 = false">关 闭</el-button>
                    </span>
                </div>
            
                <el-dialog
                    width="600"
                    title="参评灯参"
                    :visible.sync="showPingFen3"
                    append-to-body
                    custom-class="addcustom addcustomdy pfxsd" v-dialogDrag>
                    <el-form :inline="true" class="demo-form-inline lampData">
                        <div class="lampData_top">
                            <el-form-item label="灯参编号：" class="witd witds">
                                <el-input v-model="pingfenRequest1.lampparamNoLike"  style="width:100px"></el-input>
                            </el-form-item>
                            <el-form-item class="dewd">
                                <el-button type="primary" @click="pingfenList1(1)">查询</el-button>
                            </el-form-item>
                        </div>
                    </el-form>
                    <div>
                    <div style="float:left" class="pfxsd_ls">
                        <div class="cont"> 可选灯参：<span class="click" @click="YesAdd()">添加</span></div>
                        <el-table :data="yesList" @selection-change="handleSelectionChangeYes" height="435" border style="width:100%" >
                            <el-table-column type="selection" width="50"></el-table-column>
                            <el-table-column prop="lampparamNo" label="灯参编号"></el-table-column>
                            <el-table-column prop="lampType" label="灯具类型"></el-table-column>
                            <el-table-column prop="lampPower" label="功率(W)"></el-table-column>
                        </el-table>
                        
                        <!-- <el-pagination
                            @current-change="handleCurrentChangeYes"
                            :current-page="yesRequest.page"
                            :page-size="10"
                            layout="total, prev, pager, next, jumper"
                            :total="yesCount"
                        ></el-pagination> -->
                    </div>
                    <div style="float:left;margin-left:10px" class="pfxsd_ls">
                     <div class="cont"> 已选灯参：<span class="click" @click="NoRemove()">删除</span></div>
                        <el-table :data="noList" @selection-change="handleSelectionChangeNo" height="435" border style="width:100%" >
                            <el-table-column type="selection" width="50"></el-table-column>
                            <el-table-column prop="lampparamNo" label="灯参编号"></el-table-column>
                            <el-table-column prop="lampType" label="灯具类型"></el-table-column>
                            <el-table-column prop="lampPower" label="功率"></el-table-column>
                        </el-table>
                    </div>
                    </div>
                    <div  style="clear:both"></div>
                </el-dialog>
            </el-dialog>

            <!--右侧品牌弹窗-->
            <el-dialog
                title="灯具品牌"
                :visible.sync="showRightBrand"
                width="500"
                custom-class="addcustom zjyq" v-dialogDrag>
                <div class="addcustom_cont">
                    <el-form :inline="true" label-width="100px" class="demo-ruleForm">
                        <div class="lampData_top">
                            <el-form-item label="" class="witd witds">
                                <el-input placeholder="请输入内容" v-model="searchBrand" ></el-input>
                            </el-form-item>
                            <el-form-item class="dewd">
                                <el-button type="primary" @click="ClickSearchBrandRight()">搜索</el-button>
                            </el-form-item>
                        </div>
                    </el-form>
                </div>
                <div>
                    <div class="bukong_bom_list_cont">
                        <ul class="wid100">
                          <li
                            v-for="(item, index) in lampBrandListRight"
                            :data-index="index"
                            @click="chooseBrandRight(item,index)"
                            :key="index"
                            :class="{'active': item.delFlag == '1'}">
                            <div class="imgs">
                              <div class="BoxTable">
                                <div class="BoxCell">
                                    <img :src="ImgPath + item.brandLogo" >
                                    <label class="el-upload-list__item-status-label"><i class="el-icon-upload-success el-icon-check"></i></label>
                                </div>
                              </div>
                            </div>
                            <p>{{item.brandName}}</p>
                          </li>
                        </ul>
                      </div>
                       <div class="redrt">*只提供会员品牌搜索</div> 
                </div>
                <div>
                        <el-row style="text-align: center;">
                            <el-col :span="24">
                            <el-form-item>
                                <el-button type="primary" @click="showRightBrand=false">关闭</el-button>
                            </el-form-item>
                            </el-col>
                        </el-row>
                </div>
            </el-dialog>
            <div class="rt">
                <el-form :inline="true"  class="demo-form-inline setyou">
                    <el-form-item label="" class="witd">
                        <span style="cursor: pointer;" @click="showRightBrandView()">灯具品牌<i  class="el-icon-arrow-down"></i></span> &nbsp;
                    </el-form-item>
                    <el-form-item label="功率" class="goglv">
                        <el-input v-model="rightRequest.powerMin" oninput="value=value.replace(/[^\d^\.]/g,'')" @blur="checkFloatTwo()">
                            <span  slot="suffix">W</span>
                        </el-input>
                        ~
                        <el-input v-model="rightRequest.powerMax" oninput="value=value.replace(/[^\d^\.]/g,'')" @blur="checkFloatTwo()">
                            <span  slot="suffix">W</span>
                        </el-input>
                    </el-form-item>
                    <template v-if="LeftRowLampparamInfo.projectLampparamVo.contestTypeString == '控光点光源'">
                        <el-form-item label="0° ≥" class="witd">
                            <el-input v-model="rightRequest.lightIntensity1Min" onkeyup="value=value.replace(/[^\d]/g,'')"><span  slot="suffix">cd</span></el-input>
                        </el-form-item>
                        <el-form-item label="上30°" class="goglv">
                            <el-input v-model="rightRequest.lightIntensity6Min " onkeyup="value=value.replace(/[^\d]/g,'')">
                                <span  slot="suffix">cd</span>
                            </el-input>
                            ~
                            <el-input v-model="rightRequest.lightIntensity6Max" onkeyup="value=value.replace(/[^\d]/g,'')">
                                <span  slot="suffix">cd</span>
                            </el-input>
                        </el-form-item>
                        <el-form-item label="下60° ≥" class="witd">
                            <el-input v-model="rightRequest.lightIntensity4Min" onkeyup="value=value.replace(/[^\d]/g,'')"><span  slot="suffix">cd</span></el-input>
                        </el-form-item>
                        <el-form-item label="左60° ≥" class="witd">
                            <el-input v-model="rightRequest.lightIntensity5Min" onkeyup="value=value.replace(/[^\d]/g,'')"><span  slot="suffix">cd</span></el-input>
                        </el-form-item>
                        <el-form-item label="右60° ≥" class="witd">
                            <el-input v-model="rightRequest.lightIntensity2Min" onkeyup="value=value.replace(/[^\d]/g,'')"><span  slot="suffix">cd</span></el-input>
                        </el-form-item>
                    </template>
                    <template v-else-if="LeftRowLampparamInfo.projectLampparamVo.contestTypeString == '不控光点光源'">
                         <el-form-item label="0° ≥" class="witd">
                            <el-input v-model="rightRequest.lightIntensity1Min" onkeyup="value=value.replace(/[^\d]/g,'')"><span  slot="suffix">cd</span></el-input>
                        </el-form-item>
                         <el-form-item label="上60° ≥" class="witd">
                            <el-input v-model="rightRequest.lightIntensity8Min" onkeyup="value=value.replace(/[^\d]/g,'')"><span  slot="suffix">cd</span></el-input>
                        </el-form-item>
                        <el-form-item label="下60° ≥" class="witd">
                            <el-input v-model="rightRequest.lightIntensity4Min" onkeyup="value=value.replace(/[^\d]/g,'')"><span  slot="suffix">cd</span></el-input>
                        </el-form-item>
                        <el-form-item label="左60° ≥" class="witd">
                            <el-input v-model="rightRequest.lightIntensity5Min" onkeyup="value=value.replace(/[^\d]/g,'')"><span  slot="suffix">cd</span></el-input>
                        </el-form-item>
                        <el-form-item label="右60° ≥" class="witd">
                            <el-input v-model="rightRequest.lightIntensity2Min" onkeyup="value=value.replace(/[^\d]/g,'')"><span  slot="suffix">cd</span></el-input>
                        </el-form-item>
                    </template>
                    
                    <template v-else-if="LeftRowLampparamInfo.projectLampparamVo.contestTypeString == '远视点光源'">
                        <el-form-item label="上30°" class="goglv">
                            <el-input v-model="rightRequest.lightIntensity6Min" onkeyup="value=value.replace(/[^\d]/g,'')">
                                <span  slot="suffix">cd</span>
                            </el-input>
                            ~
                            <el-input v-model="rightRequest.lightIntensity6Max" onkeyup="value=value.replace(/[^\d]/g,'')">
                                <span  slot="suffix">cd</span>
                            </el-input>
                        </el-form-item>
                        <el-form-item label="下45°" class="goglv">
                            <el-input v-model="rightRequest.lightIntensity3Min" onkeyup="value=value.replace(/[^\d]/g,'')">
                                <span  slot="suffix">cd</span>
                            </el-input>
                            ~
                            <el-input v-model="rightRequest.lightIntensity3Max" onkeyup="value=value.replace(/[^\d]/g,'')">
                                <span  slot="suffix">cd</span>
                            </el-input>
                        </el-form-item>
                        <el-form-item label="下10° ≥" class="witd">
                            <el-input v-model="rightRequest.lightIntensity7Min" onkeyup="value=value.replace(/[^\d]/g,'')"><span  slot="suffix">cd</span></el-input>
                        </el-form-item>
                        <el-form-item label="下10°左60° ≥" class="witd">
                            <el-input v-model="rightRequest.lightIntensity9Min" onkeyup="value=value.replace(/[^\d]/g,'')"><span  slot="suffix">cd</span></el-input>
                        </el-form-item>
                        <el-form-item label="下10°右60° ≥" class="witd">
                            <el-input v-model="rightRequest.lightIntensity10Min" onkeyup="value=value.replace(/[^\d]/g,'')"><span  slot="suffix">cd</span></el-input>
                        </el-form-item>
                    </template>
                    <template v-else-if="LeftRowLampparamInfo.projectLampparamVo.contestTypeString == '正投'">
                        <el-form-item label="平均亮度" class="goglv">
                            <el-input v-model="rightRequest.lightnessAveMin" oninput="value=value.replace(/[^\d^\.]/g,'')" @blur="checkFloatTwo()">
                                <span  slot="suffix">cd/㎡</span>
                            </el-input>
                            ~
                            <el-input v-model="rightRequest.lightnessAveMax" oninput="value=value.replace(/[^\d^\.]/g,'')" @blur="checkFloatTwo()">
                                <span  slot="suffix">cd/㎡</span>
                            </el-input>
                        </el-form-item>
                        <el-form-item v-if="LeftRowLampparamInfo.projectLampparamVo.brightnessMax == 'brightnessMax'" label="最大亮度 ≤" class="witd">
                            <el-input v-model="rightRequest.lightnessMaxMax" oninput="value=value.replace(/[^\d^\.]/g,'')" @blur="checkFloatTwo()"><span  slot="suffix">cd/㎡</span></el-input>
                        </el-form-item>
                        <el-form-item v-else label="A点亮度 ≥" class="witd">
                            <el-input v-model="rightRequest.brightnessAMax" oninput="value=value.replace(/[^\d^\.]/g,'')" @blur="checkFloatTwo()"><span  slot="suffix">cd/㎡</span></el-input>
                        </el-form-item>
                        <el-form-item label="均匀度 ≥" class="witd witd2">
                            <el-input v-model="rightRequest.evennessMin" oninput="value=value.replace(/[^\d^\.]/g,'')" @blur="checkFloatTwo()"><span  slot="suffix">cd/㎡</span></el-input>
                        </el-form-item>
                    </template>
                    <template v-else-if="LeftRowLampparamInfo.projectLampparamVo.contestTypeString == '复合面' ||LeftRowLampparamInfo.projectLampparamVo.contestTypeString == '窗框'">
                        <div>
                        A面
                        <el-form-item label="平均亮度" class="goglv">
                            <el-input v-model="rightRequest.lightnessAveMinA" oninput="value=value.replace(/[^\d^\.]/g,'')" @blur="checkFloatTwo()">
                                <span  slot="suffix">cd/㎡</span>
                            </el-input>
                            ~
                            <el-input v-model="rightRequest.lightnessAveMaxA" oninput="value=value.replace(/[^\d^\.]/g,'')" @blur="checkFloatTwo()">
                                <span  slot="suffix">cd/㎡</span>
                            </el-input>
                        </el-form-item>
                        <el-form-item label="最大亮度 ≤" class="witd">
                            <el-input v-model="rightRequest.lightnessMaxMaxA" oninput="value=value.replace(/[^\d^\.]/g,'')" @blur="checkFloatTwo()"><span  slot="suffix">cd/㎡</span></el-input>
                        </el-form-item>
                        <el-form-item label="最小亮度 ≥" class="witd">
                            <el-input v-model="rightRequest.lightnessStartA" oninput="value=value.replace(/[^\d^\.]/g,'')" @blur="checkFloatTwo()"><span  slot="suffix">cd/㎡</span></el-input>
                        </el-form-item>
                        <el-form-item label="均匀度 ≥" class="witd witd2">
                            <el-input v-model="rightRequest.evennessMinA" oninput="value=value.replace(/[^\d^\.]/g,'')" @blur="checkFloatTwo()"></el-input>
                        </el-form-item>
                        </div>
                        <div>
                        B面
                        <el-form-item label="平均亮度" class="goglv">
                            <el-input v-model="rightRequest.lightnessAveMinB" oninput="value=value.replace(/[^\d^\.]/g,'')" @blur="checkFloatTwo()">
                                <span  slot="suffix">cd/㎡</span>
                            </el-input>
                            ~
                            <el-input v-model="rightRequest.lightnessAveMaxB" oninput="value=value.replace(/[^\d^\.]/g,'')" @blur="checkFloatTwo()">
                                <span  slot="suffix">cd/㎡</span>
                            </el-input>
                        </el-form-item>
                        <el-form-item label="最大亮度 ≤" class="witd">
                            <el-input v-model="rightRequest.lightnessMaxMaxB" oninput="value=value.replace(/[^\d^\.]/g,'')" @blur="checkFloatTwo()"><span  slot="suffix">cd/㎡</span></el-input>
                        </el-form-item>
                        <el-form-item label="最小亮度 ≥" class="witd">
                            <el-input v-model="rightRequest.lightnessStartB" oninput="value=value.replace(/[^\d^\.]/g,'')" @blur="checkFloatTwo()"><span  slot="suffix">cd/㎡</span></el-input>
                        </el-form-item>
                        <el-form-item label="均匀度 ≥" class="witd witd2">
                            <el-input v-model="rightRequest.evennessMinB" oninput="value=value.replace(/[^\d^\.]/g,'')" @blur="checkFloatTwo()"></el-input>
                        </el-form-item>
                        </div>
                    </template>
                    <template v-else>
                        <el-form-item label="平均亮度" class="goglv">
                            <el-input v-model="rightRequest.lightnessAveMin" oninput="value=value.replace(/[^\d^\.]/g,'')" @blur="checkFloatTwo()">
                                <span  slot="suffix">cd/㎡</span>
                            </el-input>
                            ~
                            <el-input v-model="rightRequest.lightnessAveMax" oninput="value=value.replace(/[^\d^\.]/g,'')" @blur="checkFloatTwo()">
                                <span  slot="suffix">cd/㎡</span>
                            </el-input>
                        </el-form-item>
                        <el-form-item label="最大亮度 ≤" class="witd">
                            <el-input v-model="rightRequest.lightnessMaxMax" oninput="value=value.replace(/[^\d^\.]/g,'')" @blur="checkFloatTwo()"><span  slot="suffix">cd/㎡</span></el-input>
                        </el-form-item>
                        <el-form-item label="最小亮度 ≥" class="witd">
                            <el-input v-model="rightRequest.lightnessStart" oninput="value=value.replace(/[^\d^\.]/g,'')" @blur="checkFloatTwo()"><span  slot="suffix">cd/㎡</span></el-input>
                        </el-form-item>
                        <el-form-item label="均匀度 ≥" class="witd witd2">
                            <el-input v-model="rightRequest.evennessMin" oninput="value=value.replace(/[^\d^\.]/g,'')" @blur="checkFloatTwo()"></el-input>
                        </el-form-item>
                    </template>

                    <el-form-item>
                        <el-button type="primary" @click="searchRightTable(1)" style="margin-right:12px;">查   询</el-button>
                        <el-button type="info" @click="resetRightTable()">重   置</el-button>
                    </el-form-item>
                </el-form>
                <div class="cme">
                    <div class="cont" v-show="chooselampBrandListRight.length>0"> 
                            <div class="title">已选品牌: </div> 
                            <span v-for="item in chooselampBrandListRight" :key="item.id" >{{item.brandName}} <i class="el-icon-close" @click="removeBrandRight(item)"></i></span>
                    </div>符合品牌：<span v-for="item in fuheBrand">{{item.brandName}}</span>
                </div>
                <div class="bomTs">
                        <div class="sp1">应用类型：</div> 
                        <div>{{LeftRowLampparamInfo.projectLampparamVo.contestTypeString}}</div>
                        <div v-show="LeftRowLampparamInfo.projectLampparamVo.contestH != null && LeftRowLampparamInfo.projectLampparamVo.contestH != ''">H：{{LeftRowLampparamInfo.projectLampparamVo.contestH}}m</div>
                        <div v-show="LeftRowLampparamInfo.projectLampparamVo.contestW != null && LeftRowLampparamInfo.projectLampparamVo.contestW != ''">W：{{LeftRowLampparamInfo.projectLampparamVo.contestW}}m</div>
                        <div v-show="LeftRowLampparamInfo.projectLampparamVo.contestW1 != null && LeftRowLampparamInfo.projectLampparamVo.contestW1 != ''">W1：{{LeftRowLampparamInfo.projectLampparamVo.contestW1}}m</div>
                        <div v-show="LeftRowLampparamInfo.projectLampparamVo.contestW2 != null && LeftRowLampparamInfo.projectLampparamVo.contestW2 != ''">W2：{{LeftRowLampparamInfo.projectLampparamVo.contestW2}}m</div>
                        <div v-show="LeftRowLampparamInfo.projectLampparamVo.contestW2 != null && LeftRowLampparamInfo.projectLampparamVo.contestW2 != ''">W2：{{LeftRowLampparamInfo.projectLampparamVo.contestW2}}m</div>
                    </div>
                <div class="bom">
                    <div class="bomlt">
                        <!-- <div class="sp1">权重：</div> -->
                        <el-button @click="searchRightTable(1)">默认排序</el-button>
                        <el-button class="btn" v-for="item in weightButtons" :key="item.id" :label="item.weightCode" @click="searchRightWeightList(item)">{{item.weightName}}</el-button>
                    </div>
                    
                    <div class="bomrt">
                        <ul>
                            <li v-show="false">＋线下投递</li>
                            <li v-show="false">删除</li>
                            <li >
                                库内符合（<span v-for="(item,index) in DataTypeList" :key="index">&nbsp;<input type="checkbox" v-model="chooseDataType" :label="item.label" :value="item.value" /> {{item.label}}</span>&nbsp;）
                            </li>
                            <li>
                                <input type="checkbox" v-model="onlySeed" @click="changeDataType()"/> 只看本次送检
                            </li>
                        </ul>  
                    </div>
                </div>
                <div v-show="LeftRowLampparamInfo.projectLampparamVo.contestTypeString=='控光点光源'" >
                    <el-table  ref="multipleTable" :row-class-name="tableRowClassName" :data="rightTableData" class="sdefc" :height="sdefc" tooltip-effect="dark" border style="width: 100%"  @selection-change="handleSelectionChangeRightTable" :highlight-current-row="true"  @row-click="rightTableRowClick">
                        <el-table-column type="index" label="序号" width="50"> </el-table-column>
                        <el-table-column prop="brandName" label="品牌"></el-table-column>
                        <el-table-column prop="posCode" label="编号" width="150"></el-table-column>
                        <el-table-column prop="colorTempe" label="色温（K）" width="120"></el-table-column>
                        <el-table-column prop="power" label="功率（W）" width="120"></el-table-column>
                        <el-table-column prop="voltage" label="电压（V）" width="120"></el-table-column>
                            <el-table-column prop="lightIntensity1" label="0°(cd)" >
                                <template slot-scope="scope">
                                    <span v-show="scope.row.lightIntensity1 != null && scope.row.lightIntensity1 != ''">
                                        <span v-if="scope.$index==0 || (scope.$index == 1 && LeftRowLampparamInfo.projectParamindexList.length>1)">≥{{scope.row.lightIntensity1}}</span>
                                        <span v-else>{{scope.row.lightIntensity1}}</span>
                                    </span>
                                </template>
                            </el-table-column>
                            <el-table-column prop="lightIntensity1Fen"  v-if="currentLeftRow.contrastType == 2 && lightIntensity1FenShow" label="0° 得分" >
                            </el-table-column>

                            <el-table-column prop="lightIntensity6" label="上30°(cd)" ></el-table-column>
                            <el-table-column prop="lightIntensity6Fen" label="上30° 得分"  v-if="currentLeftRow.contrastType == 2 && lightIntensity6FenShow" ></el-table-column>

                            <el-table-column prop="lightIntensity4" label="下60°(cd)" >
                                <template slot-scope="scope">
                                    <span v-show="scope.row.lightIntensity4 != null && scope.row.lightIntensity4 != ''">
                                        <span v-if="scope.$index==0 || (scope.$index == 1 && LeftRowLampparamInfo.projectParamindexList.length>1)">≥{{scope.row.lightIntensity4}}</span>
                                        <span v-else>{{scope.row.lightIntensity4}}</span>
                                    </span>
                                </template>
                            </el-table-column>
                            <el-table-column prop="lightIntensity4Fen" label="下60° 得分"  v-if="currentLeftRow.contrastType == 2 && lightIntensity4FenShow" ></el-table-column>

                            <el-table-column prop="lightIntensity5" label="左60°(cd)" >
                                <template slot-scope="scope">
                                    <span v-show="scope.row.lightIntensity5 != null && scope.row.lightIntensity5 != ''">
                                        <span v-if="scope.$index==0 || (scope.$index == 1 && LeftRowLampparamInfo.projectParamindexList.length>1)">≥{{scope.row.lightIntensity5}}</span>
                                        <span v-else>{{scope.row.lightIntensity5}}</span>
                                    </span>
                                </template>
                            </el-table-column>
                            <el-table-column prop="lightIntensity5Fen" label="左60° 得分"  v-if="currentLeftRow.contrastType == 2 && lightIntensity5FenShow" ></el-table-column>

                            <el-table-column prop="lightIntensity2" label="右60°(cd)" >
                                <template slot-scope="scope">
                                    <span v-show="scope.row.lightIntensity2 != null && scope.row.lightIntensity2 != ''">
                                        <span v-if="scope.$index==0 || (scope.$index == 1 && LeftRowLampparamInfo.projectParamindexList.length>1)">≥{{scope.row.lightIntensity2}}</span>
                                        <span v-else>{{scope.row.lightIntensity2}}</span>
                                    </span>
                                </template>
                            </el-table-column>
                            <el-table-column prop="lightIntensity2Fen" label="右60° 得分"  v-if="currentLeftRow.contrastType == 2 && lightIntensity2FenShow" ></el-table-column>
                        <el-table-column prop="" label="本次送检">
                            <template slot-scope="scope">
                                <span v-show="scope.row.designCode != null && LeftRowLampparamInfo.projectLampparamVo.unionCode != null">{{scope.row.designCode == LeftRowLampparamInfo.projectLampparamVo.unionCode ? '是':''}}</span>
                            </template>
                        </el-table-column>
                        <template  v-if="currentLeftRow.contrastType == 2">
                            <el-table-column prop="contrastDetection.score" label="产品性能"></el-table-column>
                            <el-table-column prop="contrastDetection.sampleFlag" label="线上投递">
                                <template slot-scope="scope"> {{scope.row.sampleFlag ? '是' : '否'}}</template>
                            </el-table-column>
                            <el-table-column prop="contrastDetection.isFit" label="符合">
                                <template slot-scope="scope">
                                    <span v-if="scope.row.contrastDetection.isFit == 1" style="cursor: pointer;" @click.stop="changeFit(scope.row,2)">未标记</span>
                                    <span v-else-if="scope.row.contrastDetection.isFit == 2" ><span @click.stop="changeFit(scope.row,3)" style="cursor: pointer;">是</span> <span @click.stop="changeFit(scope.row,1)" style="cursor: pointer;margin-left:10px">取消标记</span></span>
                                    <span v-else-if="scope.row.contrastDetection.isFit == 3" ><span @click.stop="changeFit(scope.row,2)" style="cursor: pointer;">否</span> <span @click.stop="changeFit(scope.row,1)" style="cursor: pointer;margin-left:10px">取消标记</span></span>
                                </template>
                            </el-table-column>
                        </template>
                    </el-table>
                </div>
                <div v-show="LeftRowLampparamInfo.projectLampparamVo.contestTypeString=='不控光点光源'">
                    <el-table  ref="multipleTable" :row-class-name="tableRowClassName" :data="rightTableData" class="sdefc" :height="sdefc" tooltip-effect="dark" border style="width: 100%"  @selection-change="handleSelectionChangeRightTable" :highlight-current-row="true"  @row-click="rightTableRowClick">
                        <el-table-column type="index" label="序号" width="50"> </el-table-column>
                        <el-table-column prop="brandName" label="品牌"></el-table-column>
                        <el-table-column prop="posCode" label="编号" width="150"></el-table-column>
                        <el-table-column prop="colorTempe" label="色温（K）" width="120"></el-table-column>
                        <el-table-column prop="power" label="功率（W）" width="120"></el-table-column>
                        <el-table-column prop="voltage" label="电压（V）" width="120"></el-table-column>
                            <el-table-column prop="lightIntensity1" label="0°(cd)" >
                                <template slot-scope="scope">
                                    <span v-show="scope.row.lightIntensity1 != null && scope.row.lightIntensity1 != ''">
                                        <span v-if="scope.$index==0 || (scope.$index == 1 && LeftRowLampparamInfo.projectParamindexList.length>1)">≥{{scope.row.lightIntensity1}}</span>
                                        <span v-else>{{scope.row.lightIntensity1}}</span>
                                    </span>
                                </template>
                            </el-table-column>
                            <el-table-column prop="lightIntensity1Fen"  v-if="currentLeftRow.contrastType == 2 && lightIntensity1FenShow" label="0° 得分" >
                            </el-table-column>
                            <el-table-column prop="lightIntensity8" label="上60°(cd)" >
                                <template slot-scope="scope">
                                    <span v-show="scope.row.lightIntensity8 != null && scope.row.lightIntensity8 != ''">
                                        <span v-if="scope.$index==0 || (scope.$index == 1 && LeftRowLampparamInfo.projectParamindexList.length>1)">≥{{scope.row.lightIntensity8}}</span>
                                        <span v-else>{{scope.row.lightIntensity8}}</span>
                                    </span>
                                </template>
                            </el-table-column>
                            <el-table-column prop="lightIntensity8Fen" label="上60° 得分"  v-if="currentLeftRow.contrastType == 2 && lightIntensity8FenShow" ></el-table-column>
                            <el-table-column prop="lightIntensity4" label="下60°(cd)" >
                                <template slot-scope="scope">
                                    <span v-show="scope.row.lightIntensity4 != null && scope.row.lightIntensity4 != ''">
                                        <span v-if="scope.$index==0 || (scope.$index == 1 && LeftRowLampparamInfo.projectParamindexList.length>1)">≥{{scope.row.lightIntensity4}}</span>
                                        <span v-else>{{scope.row.lightIntensity4}}</span>
                                    </span>
                                </template>
                            </el-table-column>
                            <el-table-column prop="lightIntensity4Fen" label="下60° 得分"  v-if="currentLeftRow.contrastType == 2 && lightIntensity4FenShow" ></el-table-column>
                            <el-table-column prop="lightIntensity5" label="左60°(cd)" >
                                 <template slot-scope="scope">
                                    <span v-show="scope.row.lightIntensity5 != null && scope.row.lightIntensity5 != ''">
                                        <span v-if="scope.$index==0 || (scope.$index == 1 && LeftRowLampparamInfo.projectParamindexList.length>1)">≥{{scope.row.lightIntensity5}}</span>
                                        <span v-else>{{scope.row.lightIntensity5}}</span>
                                    </span>
                                </template>
                            </el-table-column>
                            <el-table-column prop="lightIntensity5Fen" label="左60° 得分"  v-if="currentLeftRow.contrastType == 2 && lightIntensity5FenShow" ></el-table-column>
                            <el-table-column prop="lightIntensity2" label="右60°(cd)" >
                                <template slot-scope="scope">
                                    <span v-show="scope.row.lightIntensity2 != null && scope.row.lightIntensity2 != ''">
                                        <span v-if="scope.$index==0 || (scope.$index == 1 && LeftRowLampparamInfo.projectParamindexList.length>1)">≥{{scope.row.lightIntensity2}}</span>
                                        <span v-else>{{scope.row.lightIntensity2}}</span>
                                    </span>
                                </template>
                            </el-table-column>
                            <el-table-column prop="lightIntensity2Fen" label="右60° 得分"  v-if="currentLeftRow.contrastType == 2 && lightIntensity2FenShow" ></el-table-column>
                        <el-table-column prop="" label="本次送检">
                            <template slot-scope="scope">
                                <span v-show="scope.row.designCode != null && LeftRowLampparamInfo.projectLampparamVo.unionCode != null">{{scope.row.designCode == LeftRowLampparamInfo.projectLampparamVo.unionCode ? '是':''}}</span>
                            </template>
                        </el-table-column>
                        <template  v-if="currentLeftRow.contrastType == 2">
                            <el-table-column prop="contrastDetection.score" label="产品性能"></el-table-column>
                            <el-table-column prop="contrastDetection.sampleFlag" label="线上投递">
                                <template slot-scope="scope"> {{scope.row.sampleFlag ? '是' : '否'}}</template>
                            </el-table-column>
                           <el-table-column prop="contrastDetection.isFit" label="符合">
                                <template slot-scope="scope">
                                    <span v-if="scope.row.contrastDetection.isFit == 1" style="cursor: pointer;" @click.stop="changeFit(scope.row,2)">未标记</span>
                                    <span v-else-if="scope.row.contrastDetection.isFit == 2" ><span @click.stop="changeFit(scope.row,3)" style="cursor: pointer;">是</span> <span @click.stop="changeFit(scope.row,1)" style="cursor: pointer;margin-left:10px">取消标记</span></span>
                                    <span v-else-if="scope.row.contrastDetection.isFit == 3" ><span @click.stop="changeFit(scope.row,2)" style="cursor: pointer;">否</span> <span @click.stop="changeFit(scope.row,1)" style="cursor: pointer;margin-left:10px">取消标记</span></span>
                                </template>
                            </el-table-column>
                        </template>
                    </el-table>
                </div>
                <div v-show="LeftRowLampparamInfo.projectLampparamVo.contestTypeString=='远视点光源'">
                    <el-table  ref="multipleTable" :row-class-name="tableRowClassName" :data="rightTableData" class="sdefc" :height="sdefc" tooltip-effect="dark" border style="width: 100%"  @selection-change="handleSelectionChangeRightTable" :highlight-current-row="true"  @row-click="rightTableRowClick">
                        <el-table-column type="index" label="序号" width="50"> </el-table-column>
                        <el-table-column prop="brandName" label="品牌"></el-table-column>
                        <el-table-column prop="posCode" label="编号" width="150"></el-table-column>
                        <el-table-column prop="colorTempe" label="色温（K）" width="120"></el-table-column>
                        <el-table-column prop="power" label="功率（W）" width="120"></el-table-column>
                        <el-table-column prop="voltage" label="电压（V）" width="120"></el-table-column>
                            <el-table-column prop="lightIntensity6" label="上30°(cd)"></el-table-column>
                            <el-table-column prop="lightIntensity6Fen" label="上30° 得分"  v-if="currentLeftRow.contrastType == 2 && lightIntensity6FenShow" ></el-table-column>
                            <el-table-column prop="lightIntensity3 " label="下45°(cd)"></el-table-column>
                            
                            <el-table-column prop="lightIntensity3Fen" label="下45° 得分"  v-if="currentLeftRow.contrastType == 2 && lightIntensity3FenShow" ></el-table-column>
                            <el-table-column prop="lightIntensity7" label="下10°(cd)">
                                <template slot-scope="scope">
                                    <span v-show="scope.row.lightIntensity7 != null && scope.row.lightIntensity7 != ''">
                                        <span v-if="scope.$index==0 || (scope.$index==1 && LeftRowLampparamInfo.projectParamindexList.length>1)">≥{{scope.row.lightIntensity7}}</span>
                                        <span v-else>{{scope.row.lightIntensity7}}</span>
                                    </span>
                                </template>
                            </el-table-column>
                            <el-table-column prop="lightIntensity7Fen" label="下10° 得分"  v-if="currentLeftRow.contrastType == 2 && lightIntensity7FenShow" ></el-table-column>
                            <el-table-column prop="lightIntensity9" label="下10°左60°(cd)">
                                <template slot-scope="scope">
                                    <span v-show="scope.row.lightIntensity9 != null && scope.row.lightIntensity9 != ''">
                                        <span v-if="scope.$index==0 || (scope.$index==1 && LeftRowLampparamInfo.projectParamindexList.length>1)">≥{{scope.row.lightIntensity9}}</span>
                                        <span v-else>{{scope.row.lightIntensity9}}</span>
                                    </span>
                                </template>
                            </el-table-column>
                            <el-table-column prop="lightIntensity9Fen" label="下10°左60° 得分"  v-if="currentLeftRow.contrastType == 2 && lightIntensity9FenShow" ></el-table-column>
                            <el-table-column prop="lightIntensity10" label="下10°右60°(cd)">
                                <template slot-scope="scope">
                                    <span v-show="scope.row.lightIntensity10 != null && scope.row.lightIntensity10 != ''">
                                        <span v-if="scope.$index==0 || (scope.$index==1 && LeftRowLampparamInfo.projectParamindexList.length>1)">≥{{scope.row.lightIntensity10}}</span>
                                        <span v-else>{{scope.row.lightIntensity10}}</span>
                                    </span>
                                </template>
                            </el-table-column>
                            <el-table-column prop="lightIntensity10Fen" label="下10°右60° 得分"  v-if="currentLeftRow.contrastType == 2 && lightIntensity10FenShow" ></el-table-column>
                        <el-table-column prop="" label="本次送检">
                            <template slot-scope="scope">
                                <span v-show="scope.row.designCode != null && LeftRowLampparamInfo.projectLampparamVo.unionCode != null">{{scope.row.designCode == LeftRowLampparamInfo.projectLampparamVo.unionCode ? '是':''}}</span>
                            </template>
                        </el-table-column>
                        <template  v-if="currentLeftRow.contrastType == 2">
                            <el-table-column prop="contrastDetection.score" label="产品性能"></el-table-column>
                            <el-table-column prop="contrastDetection.sampleFlag" label="线上投递">
                                <template slot-scope="scope"> {{scope.row.sampleFlag ? '是' : '否'}}</template>
                            </el-table-column>
                            <el-table-column prop="contrastDetection.isFit" label="符合">
                                <template slot-scope="scope">
                                    <span v-if="scope.row.contrastDetection.isFit == 1" style="cursor: pointer;" @click.stop="changeFit(scope.row,2)">未标记</span>
                                    <span v-else-if="scope.row.contrastDetection.isFit == 2" ><span @click.stop="changeFit(scope.row,3)" style="cursor: pointer;">是</span> <span @click.stop="changeFit(scope.row,1)" style="cursor: pointer;margin-left:10px">取消标记</span></span>
                                    <span v-else-if="scope.row.contrastDetection.isFit == 3" ><span @click.stop="changeFit(scope.row,2)" style="cursor: pointer;">否</span> <span @click.stop="changeFit(scope.row,1)" style="cursor: pointer;margin-left:10px">取消标记</span></span>
                                </template>
                            </el-table-column>
                        </template>
                    </el-table>
                </div>
                <div v-show="LeftRowLampparamInfo.projectLampparamVo.contestTypeString=='正投'">
                    <el-table  ref="multipleTable" :row-class-name="tableRowClassName" :data="rightTableData" class="sdefc" :height="sdefc" tooltip-effect="dark" border style="width: 100%"  @selection-change="handleSelectionChangeRightTable" :highlight-current-row="true"  @row-click="rightTableRowClick">
                        <el-table-column type="index" label="序号" width="50"> </el-table-column>
                        <el-table-column prop="brandName" label="品牌"></el-table-column>
                        <el-table-column prop="posCode" label="编号" width="150"></el-table-column>
                        <el-table-column prop="colorTempe" label="色温（K）" width="120"></el-table-column>
                        <el-table-column prop="power" label="功率（W）" width="120"></el-table-column>
                        <el-table-column prop="voltage" label="电压（V）" width="120"></el-table-column>
                            <el-table-column prop="lumSize" label="D(m)" width="120" ></el-table-column>
                            <el-table-column prop="lightnessAve" label="平均亮度（cd/㎡）" width="150" >
                            </el-table-column>
                            <el-table-column prop="lightnessAveFen" label="平均亮度得分" v-if="currentLeftRow.contrastType == 2  && lightnessAveFenShow" width="150" >
                            </el-table-column>
                            
                            <el-table-column prop="lightnessMax" v-if="LeftRowLampparamInfo.projectLampparamVo.brightnessMax == 'brightnessMax'" label="最大亮度（cd /㎡）" width="150" >
                                <template slot-scope="scope">
                                    <span v-show="scope.row.lightnessMax != null && scope.row.lightnessMax != ''">
                                        <span v-if="scope.$index==0 || (scope.$index==1 && LeftRowLampparamInfo.projectParamindexList.length>1)">≤{{scope.row.lightnessMax}}</span>
                                        <span v-else>{{scope.row.lightnessMax}}</span>
                                    </span>
                                </template>
                            </el-table-column>

                            <el-table-column prop="brightnessA"  v-else label="A点亮度（cd /㎡）" width="150" >
                                <template slot-scope="scope">
                                    <span v-show="scope.row.brightnessA != null && scope.row.brightnessA != ''">
                                        <span v-if="scope.$index==0 || (scope.$index==1 && LeftRowLampparamInfo.projectParamindexList.length>1)">≥{{scope.row.brightnessA}}</span>
                                        <span v-else>{{scope.row.brightnessA}}</span>
                                    </span>
                                </template>
                            </el-table-column>
                            <el-table-column prop="lightnessMaxFen" label="最大亮度得分" v-if="currentLeftRow.contrastType == 2 && lightnessMaxFenShow" width="150" >
                            </el-table-column>

                            <el-table-column prop="evenness" label="均匀度" >
                                <template slot-scope="scope">
                                    <span v-show="scope.row.evenness != null && scope.row.evenness > -1">
                                        <span v-if="scope.$index==0 || (scope.$index == 1 && LeftRowLampparamInfo.projectParamindexList.length>1)">≥{{scope.row.evenness}}</span>
                                        <span v-else>{{scope.row.evenness}}</span>
                                    </span>
                                </template>
                            </el-table-column>
                        <el-table-column prop="" label="本次送检">
                            <template slot-scope="scope">
                                <span v-show="scope.row.designCode != null && LeftRowLampparamInfo.projectLampparamVo.unionCode != null">{{scope.row.designCode == LeftRowLampparamInfo.projectLampparamVo.unionCode ? '是':''}}</span>
                            </template>
                        </el-table-column>
                        <template  v-if="currentLeftRow.contrastType == 2">
                            <el-table-column prop="contrastDetection.score" label="产品性能"></el-table-column>
                            <el-table-column prop="contrastDetection.sampleFlag" label="线上投递">
                                <template slot-scope="scope"> {{scope.row.sampleFlag ? '是' : '否'}}</template>
                            </el-table-column>
                            <el-table-column prop="contrastDetection.isFit" label="符合">
                                <template slot-scope="scope">
                                    <span v-if="scope.row.contrastDetection.isFit == 1" style="cursor: pointer;" @click.stop="changeFit(scope.row,2)">未标记</span>
                                    <span v-else-if="scope.row.contrastDetection.isFit == 2" ><span @click.stop="changeFit(scope.row,3)" style="cursor: pointer;">是</span> <span @click.stop="changeFit(scope.row,1)" style="cursor: pointer;margin-left:10px">取消标记</span></span>
                                    <span v-else-if="scope.row.contrastDetection.isFit == 3" ><span @click.stop="changeFit(scope.row,2)" style="cursor: pointer;">否</span> <span @click.stop="changeFit(scope.row,1)" style="cursor: pointer;margin-left:10px">取消标记</span></span>
                                </template>
                            </el-table-column>
                        </template>
                    </el-table>
                </div>
                <div v-show="LeftRowLampparamInfo.projectLampparamVo.contestTypeString=='复合面' || LeftRowLampparamInfo.projectLampparamVo.contestTypeString=='窗框'">
                    <el-table  ref="multipleTable" :row-class-name="tableRowClassName" :data="rightTableData" class="sdefc" :height="sdefc" tooltip-effect="dark" border style="width: 100%"  @selection-change="handleSelectionChangeRightTable" :highlight-current-row="true"  @row-click="rightTableRowClick">
                        <el-table-column type="index" label="序号" width="50"> </el-table-column>
                        <el-table-column prop="brandName" label="品牌"></el-table-column>
                        <el-table-column prop="posCode" label="编号" width="150"></el-table-column>
                        <el-table-column prop="colorTempe" label="色温（K）" width="120"></el-table-column>
                        <el-table-column prop="power" label="功率（W）" width="120"></el-table-column>
                        <el-table-column prop="voltage" label="电压（V）" width="120"></el-table-column>
                            <el-table-column prop="surfaceType" label="测试面" ></el-table-column>
                            <el-table-column prop="lumSize" label="D(m)" width="120" ></el-table-column>
                            <el-table-column prop="testAngle" label="测试角度" width="120" ></el-table-column>
                            <el-table-column prop="lightnessAve" label="平均亮度（cd/㎡）" width="150" >
                            </el-table-column>
                            <el-table-column prop="lightnessAveFen" label="平均亮度得分" v-if="currentLeftRow.contrastType == 2 && lightnessAveFenShow" width="150" >
                            </el-table-column>
                            
                            <el-table-column prop="lightnessMax" label="最大亮度（cd /㎡）" width="150" >
                                <template slot-scope="scope">
                                    <span v-show="scope.row.lightnessMax != null && scope.row.lightnessMax != ''">
                                        <span v-if="scope.$index==0 || (scope.$index == 1 && LeftRowLampparamInfo.projectParamindexList.length>1)">≤{{scope.row.lightnessMax}}</span>
                                        <span v-else>{{scope.row.lightnessMax}}</span>
                                    </span>
                                </template>
                            </el-table-column>
                            <el-table-column prop="lightnessMaxFen" label="最大亮度得分" v-if="currentLeftRow.contrastType == 2 && lightnessMaxFenShow" width="150" >
                            </el-table-column>
                            <el-table-column prop="lightness" label="最小亮度（cd/㎡）" width="150" >
                                <template slot-scope="scope">
                                    <span v-show="scope.row.lightness != null && scope.row.lightness != ''">
                                    <span v-if="scope.$index==0 || (scope.$index == 1 && LeftRowLampparamInfo.projectParamindexList.length>1)">≥{{scope.row.lightness}}</span>
                                    <span v-else>{{scope.row.lightness}}</span>
                                    </span>
                                </template>
                            </el-table-column>
                            <el-table-column prop="lightnessFen" label="最小亮度得分" v-if="currentLeftRow.contrastType == 2 && lightnessFenShow" width="150" >
                            </el-table-column>
                            <el-table-column prop="evenness" label="均匀度" >
                                <template slot-scope="scope">
                                    <span v-show="scope.row.evenness != null && scope.row.evenness > -1">
                                        <span v-if="scope.$index==0 || (scope.$index == 1 && LeftRowLampparamInfo.projectParamindexList.length>1)">≥{{scope.row.evenness}}</span>
                                        <span v-else>{{scope.row.evenness}}</span>
                                    </span>
                                </template>
                            </el-table-column>
                        <el-table-column prop="" label="本次送检">
                            <template slot-scope="scope">
                                <span v-show="scope.row.designCode != null && LeftRowLampparamInfo.projectLampparamVo.unionCode != null">{{scope.row.designCode == LeftRowLampparamInfo.projectLampparamVo.unionCode ? '是':''}}</span>
                            </template>
                        </el-table-column>
                        <template  v-if="currentLeftRow.contrastType == 2">
                            <el-table-column prop="contrastDetection.score" label="产品性能"></el-table-column>
                            <el-table-column prop="contrastDetection.sampleFlag" label="线上投递">
                                <template slot-scope="scope"> {{scope.row.sampleFlag ? '是' : '否'}}</template>
                            </el-table-column>
                            <el-table-column prop="contrastDetection.isFit" label="符合">
                                <template slot-scope="scope">
                                    <span v-if="scope.row.contrastDetection.isFit == 1" style="cursor: pointer;" @click.stop="changeFit(scope.row,2)">未标记</span>
                                    <span v-else-if="scope.row.contrastDetection.isFit == 2" ><span @click.stop="changeFit(scope.row,3)" style="cursor: pointer;">是</span> <span @click.stop="changeFit(scope.row,1)" style="cursor: pointer;margin-left:10px">取消标记</span></span>
                                    <span v-else-if="scope.row.contrastDetection.isFit == 3" ><span @click.stop="changeFit(scope.row,2)" style="cursor: pointer;">否</span> <span @click.stop="changeFit(scope.row,1)" style="cursor: pointer;margin-left:10px">取消标记</span></span>
                                </template>
                            </el-table-column>
                        </template>
                    </el-table>
                </div>
                <div v-show="LeftRowLampparamInfo.projectLampparamVo.contestTypeString=='洗墙' || LeftRowLampparamInfo.projectLampparamVo.contestTypeString=='柱子'|| LeftRowLampparamInfo.projectLampparamVo.contestTypeString=='瓦楞'|| LeftRowLampparamInfo.projectLampparamVo.contestTypeString=='自发光线'|| LeftRowLampparamInfo.projectLampparamVo.contestTypeString=='单侧导光'|| LeftRowLampparamInfo.projectLampparamVo.contestTypeString=='双侧导光'">
                    <el-table  ref="multipleTable" :row-class-name="tableRowClassName" :data="rightTableData" class="sdefc" :height="sdefc" tooltip-effect="dark" border style="width: 100%"  @selection-change="handleSelectionChangeRightTable" :highlight-current-row="true"  @row-click="rightTableRowClick">
                        <el-table-column type="index" label="序号" width="50"> </el-table-column>
                        <el-table-column prop="brandName" label="品牌"></el-table-column>
                        <el-table-column prop="posCode" label="编号" width="150"></el-table-column>
                        <el-table-column prop="colorTempe" label="色温（K）" width="120"></el-table-column>
                        <el-table-column prop="power" label="功率（W）" width="120"></el-table-column>
                        <el-table-column prop="voltage" label="电压（V）" width="120"></el-table-column>
                            <el-table-column prop="lumSize" label="D(m)" width="120" ></el-table-column>
                            <el-table-column prop="testAngle" label="测试角度" width="120" ></el-table-column>
                            <el-table-column prop="lightnessAve" label="平均亮度（cd/㎡）" width="150" >
                            </el-table-column>
                            <el-table-column prop="lightnessAveFen" label="平均亮度得分" v-if="currentLeftRow.contrastType == 2 && lightnessAveFenShow" width="150" >
                            </el-table-column>
                            
                            <el-table-column prop="lightnessMax" label="最大亮度（cd /㎡）" width="150" >
                                <template slot-scope="scope">
                                    <span v-show="scope.row.lightnessMax != null && scope.row.lightnessMax != ''">
                                        <span v-if="scope.$index==0 || (scope.$index == 1 && LeftRowLampparamInfo.projectParamindexList.length>1)">≤{{scope.row.lightnessMax}}</span>
                                        <span v-else>{{scope.row.lightnessMax}}</span>
                                    </span>
                                </template>
                            </el-table-column>
                            <el-table-column prop="lightnessMaxFen" label="最大亮度得分" v-if="currentLeftRow.contrastType == 2 && lightnessMaxFenShow" width="150" >
                            </el-table-column>
                            <el-table-column prop="lightness" label="最小亮度（cd/㎡）" width="150" >
                                <template slot-scope="scope">
                                    <span v-show="scope.row.lightness != null && scope.row.lightness != ''">
                                    
                                    <span v-if="scope.$index==0 || (scope.$index == 1 && LeftRowLampparamInfo.projectParamindexList.length>1)">≥{{scope.row.lightness}}</span>
                                    <span v-else>{{scope.row.lightness}}</span>
                                    </span>
                                </template>
                            </el-table-column>
                            <el-table-column prop="lightnessFen" label="最小亮度得分" v-if="currentLeftRow.contrastType == 2 && lightnessFenShow" width="150" >
                            </el-table-column>
                            <el-table-column prop="evenness" label="均匀度" >
                                <template slot-scope="scope">
                                    <span v-show="scope.row.evenness != null && scope.row.evenness > -1">
                                        <span v-if="scope.$index==0 || (scope.$index == 1 && LeftRowLampparamInfo.projectParamindexList.length>1)">≥{{scope.row.evenness}}</span>
                                        <span v-else>{{scope.row.evenness}}</span>
                                    </span>
                                </template>
                            </el-table-column>
                        <el-table-column prop="" label="本次送检">
                            <template slot-scope="scope">
                                <span v-show="scope.row.designCode != null && LeftRowLampparamInfo.projectLampparamVo.unionCode != null">{{scope.row.designCode == LeftRowLampparamInfo.projectLampparamVo.unionCode ? '是':''}}</span>
                            </template>
                        </el-table-column>
                        <template  v-if="currentLeftRow.contrastType == 2">
                            <el-table-column prop="contrastDetection.score" label="产品性能"></el-table-column>
                            <el-table-column prop="contrastDetection.sampleFlag" label="线上投递">
                                <template slot-scope="scope"> {{scope.row.sampleFlag ? '是' : '否'}}</template>
                            </el-table-column>
                            <el-table-column prop="contrastDetection.isFit" label="符合">
                                <template slot-scope="scope">
                                    <span v-if="scope.row.contrastDetection.isFit == 1" style="cursor: pointer;" @click.stop="changeFit(scope.row,2)">未标记</span>
                                    <span v-else-if="scope.row.contrastDetection.isFit == 2" ><span @click.stop="changeFit(scope.row,3)" style="cursor: pointer;">是</span> <span @click.stop="changeFit(scope.row,1)" style="cursor: pointer;margin-left:10px">取消标记</span></span>
                                    <span v-else-if="scope.row.contrastDetection.isFit == 3" ><span @click.stop="changeFit(scope.row,2)" style="cursor: pointer;">否</span> <span @click.stop="changeFit(scope.row,1)" style="cursor: pointer;margin-left:10px">取消标记</span></span>
                                </template>
                            </el-table-column>
                        </template>
                    </el-table>
                </div>

                <!-- <el-table  ref="multipleTable" :row-class-name="tableRowClassName" :data="rightTableData" class="sdefc" :height="sdefc" tooltip-effect="dark" border style="width: 100%"  @selection-change="handleSelectionChangeRightTable" :highlight-current-row="true"  @row-click="rightTableRowClick">
                        <el-table-column type="index" label="序号" width="50"> </el-table-column>
                        <el-table-column prop="brandName" label="品牌"></el-table-column>
                        <el-table-column prop="posCode" label="编号" width="150"></el-table-column>
                        <el-table-column prop="colorTempe" label="色温（K）" width="120"></el-table-column>
                        <el-table-column prop="power" label="功率（W）" width="120"></el-table-column>
                        <el-table-column prop="voltage" label="电压（V）" width="120"></el-table-column>
                        <template v-show="LeftRowLampparamInfo.projectLampparamVo.contestTypeString=='控光点光源'" >
                            <el-table-column prop="lightIntensity1" label="0°(cd)" >
                                <template slot-scope="scope">
                                    <span v-show="scope.row.lightIntensity1 != null && scope.row.lightIntensity1 != ''">≥{{scope.row.lightIntensity1}}</span>
                                </template>
                            </el-table-column>
                            <el-table-column prop="lightIntensity1Fen"  v-if="currentLeftRow.contrastType == 2 && lightIntensity1FenShow" label="0° 得分" >
                            </el-table-column>

                            <el-table-column prop="lightIntensity6" label="上30°(cd)" ></el-table-column>
                            <el-table-column prop="lightIntensity6Fen" label="上30° 得分"  v-if="currentLeftRow.contrastType == 2 && lightIntensity6FenShow" ></el-table-column>

                            <el-table-column prop="lightIntensity4" label="下60°(cd)" >
                                <template slot-scope="scope">
                                    <span v-show="scope.row.lightIntensity4 != null && scope.row.lightIntensity4 != ''">≥{{scope.row.lightIntensity4}}</span>
                                </template>
                            </el-table-column>
                            <el-table-column prop="lightIntensity4Fen" label="下60° 得分"  v-if="currentLeftRow.contrastType == 2 && lightIntensity4FenShow" ></el-table-column>

                            <el-table-column prop="lightIntensity5" label="左60°(cd)" >
                                <template slot-scope="scope">
                                    <span v-show="scope.row.lightIntensity5 != null && scope.row.lightIntensity5 != ''">≥{{scope.row.lightIntensity5}}</span>
                                </template>
                            </el-table-column>
                            <el-table-column prop="lightIntensity5Fen" label="左60° 得分"  v-if="currentLeftRow.contrastType == 2 && lightIntensity5FenShow" ></el-table-column>

                            <el-table-column prop="lightIntensity2" label="右60°(cd)" >
                                <template slot-scope="scope">
                                    <span v-show="scope.row.lightIntensity2 != null && scope.row.lightIntensity2 != ''">≥{{scope.row.lightIntensity2}}</span>
                                </template>
                            </el-table-column>
                            <el-table-column prop="lightIntensity2Fen" label="右60° 得分"  v-if="currentLeftRow.contrastType == 2 && lightIntensity2FenShow" ></el-table-column>
                        </template>
                        <template v-show="LeftRowLampparamInfo.projectLampparamVo.contestTypeString=='不控光点光源'">
                            <el-table-column prop="lightIntensity1" label="0°(cd)" >
                                <template slot-scope="scope">
                                    <span v-show="scope.row.lightIntensity1 != null && scope.row.lightIntensity1 != ''">≥{{scope.row.lightIntensity1}}</span>
                                </template>
                            </el-table-column>
                            <el-table-column prop="lightIntensity1Fen"  v-if="currentLeftRow.contrastType == 2 && lightIntensity1FenShow" label="0° 得分" >
                            </el-table-column>
                            <el-table-column prop="lightIntensity8" label="上60°(cd)" >
                                <template slot-scope="scope">
                                    <span v-show="scope.row.lightIntensity8 != null && scope.row.lightIntensity8 != ''">≥{{scope.row.lightIntensity8}}</span>
                                </template>
                            </el-table-column>
                            <el-table-column prop="lightIntensity8Fen" label="上60° 得分"  v-if="currentLeftRow.contrastType == 2 && lightIntensity8FenShow" ></el-table-column>
                            <el-table-column prop="lightIntensity4" label="下60°(cd)" >
                                <template slot-scope="scope">
                                    <span v-show="scope.row.lightIntensity4 != null && scope.row.lightIntensity4 != ''">≥{{scope.row.lightIntensity4}}</span>
                                </template>
                            </el-table-column>
                            <el-table-column prop="lightIntensity4Fen" label="下60° 得分"  v-if="currentLeftRow.contrastType == 2 && lightIntensity4FenShow" ></el-table-column>
                            <el-table-column prop="lightIntensity5" label="左60°(cd)" >
                                 <template slot-scope="scope">
                                    <span v-show="scope.row.lightIntensity5 != null && scope.row.lightIntensity5 != ''">≥{{scope.row.lightIntensity5}}</span>
                                </template>
                            </el-table-column>
                            <el-table-column prop="lightIntensity5Fen" label="左60° 得分"  v-if="currentLeftRow.contrastType == 2 && lightIntensity5FenShow" ></el-table-column>
                            <el-table-column prop="lightIntensity2" label="右60°(cd)" >
                                <template slot-scope="scope">
                                    <span v-show="scope.row.lightIntensity2 != null && scope.row.lightIntensity2 != ''">≥{{scope.row.lightIntensity2}}</span>
                                </template>
                            </el-table-column>
                            <el-table-column prop="lightIntensity2Fen" label="右60° 得分"  v-if="currentLeftRow.contrastType == 2 && lightIntensity2FenShow" ></el-table-column>
                        </template>
                        <template v-show="LeftRowLampparamInfo.projectLampparamVo.contestTypeString=='远视点光源'">
                            <el-table-column prop="lightIntensity6" label="上30°(cd)"></el-table-column>
                            <el-table-column prop="lightIntensity6Fen" label="上30° 得分"  v-if="currentLeftRow.contrastType == 2 && lightIntensity6FenShow" ></el-table-column>
                            <el-table-column prop="lightIntensity3 " label="下45°(cd)"></el-table-column>
                            
                            <el-table-column prop="lightIntensity3Fen" label="下45° 得分"  v-if="currentLeftRow.contrastType == 2 && lightIntensity3FenShow" ></el-table-column>
                            <el-table-column prop="lightIntensity7" label="下10°(cd)">
                                <template slot-scope="scope">
                                    <span v-show="scope.row.lightIntensity7 != null && scope.row.lightIntensity7 != ''">≥{{scope.row.lightIntensity7}}</span>
                                </template>
                            </el-table-column>
                            <el-table-column prop="lightIntensity7Fen" label="下10° 得分"  v-if="currentLeftRow.contrastType == 2 && lightIntensity7FenShow" ></el-table-column>
                            <el-table-column prop="lightIntensity9" label="下10°左60°(cd)">
                                <template slot-scope="scope">
                                    <span v-show="scope.row.lightIntensity9 != null && scope.row.lightIntensity9 != ''">≥{{scope.row.lightIntensity9}}</span>
                                </template>
                            </el-table-column>
                            <el-table-column prop="lightIntensity9Fen" label="下10°左60° 得分"  v-if="currentLeftRow.contrastType == 2 && lightIntensity9FenShow" ></el-table-column>
                            <el-table-column prop="lightIntensity10" label="下10°右60°(cd)">
                                <template slot-scope="scope">
                                    <span v-show="scope.row.lightIntensity10 != null && scope.row.lightIntensity10 != ''">≥{{scope.row.lightIntensity10}}</span>
                                </template>
                            </el-table-column>
                            <el-table-column prop="lightIntensity10Fen" label="下10°右60° 得分"  v-if="currentLeftRow.contrastType == 2 && lightIntensity10FenShow" ></el-table-column>
                        </template>
                        <template v-show="LeftRowLampparamInfo.projectLampparamVo.contestTypeString=='正投'">
                            <el-table-column prop="lumSize" label="D(m)" width="120" ></el-table-column>
                            <el-table-column prop="lightnessAve" label="平均亮度（cd/㎡）" width="150" >
                            </el-table-column>
                            <el-table-column prop="lightnessAveFen" label="平均亮度得分" v-if="currentLeftRow.contrastType == 2  && lightnessAveFenShow" width="150" >
                            </el-table-column>
                            
                            <el-table-column prop="lightnessMax" v-if="LeftRowLampparamInfo.projectLampparamVo.brightnessMax == 'brightnessMax'" label="最大亮度（cd /㎡）" width="150" >
                                <template slot-scope="scope">
                                    <span v-show="scope.row.lightnessMax != null && scope.row.lightnessMax != ''">≤{{scope.row.lightnessMax}}</span>
                                </template>
                            </el-table-column>

                            <el-table-column prop="brightnessA"  v-else label="A点亮度（cd /㎡）" width="150" >
                                <template slot-scope="scope">
                                    <span v-show="scope.row.brightnessA != null && scope.row.brightnessA != ''">≥{{scope.row.brightnessA}}</span>
                                </template>
                            </el-table-column>
                            <el-table-column prop="lightnessMaxFen" label="最大亮度得分" v-if="currentLeftRow.contrastType == 2 && lightnessMaxFenShow" width="150" >
                            </el-table-column>

                            <el-table-column prop="evenness" label="均匀度" >
                                <template slot-scope="scope">
                                    <span v-show="scope.row.evenness != null && scope.row.evenness != ''">≥{{scope.row.evenness}}</span>
                                </template>
                            </el-table-column>
                        </template>
                        <template v-show="LeftRowLampparamInfo.projectLampparamVo.contestTypeString=='复合面' || LeftRowLampparamInfo.projectLampparamVo.contestTypeString=='窗框'">
                            <el-table-column prop="surfaceType" label="测试面" ></el-table-column>
                            <el-table-column prop="lumSize" label="D(m)" width="120" ></el-table-column>
                            <el-table-column prop="testAngle" label="测试角度" width="120" ></el-table-column>
                            <el-table-column prop="lightnessAve" label="平均亮度（cd/㎡）" width="150" >
                            </el-table-column>
                            <el-table-column prop="lightnessAveFen" label="平均亮度得分" v-if="currentLeftRow.contrastType == 2 && lightnessAveFenShow" width="150" >
                            </el-table-column>
                            
                            <el-table-column prop="lightnessMax" label="最大亮度（cd /㎡）" width="150" >
                                <template slot-scope="scope">
                                    <span v-show="scope.row.lightnessMax != null && scope.row.lightnessMax != ''">≤{{scope.row.lightnessMax}}</span>
                                </template>
                            </el-table-column>
                            <el-table-column prop="lightnessMaxFen" label="最大亮度得分" v-if="currentLeftRow.contrastType == 2 && lightnessMaxFenShow" width="150" >
                            </el-table-column>
                            <el-table-column prop="lightness" label="最小亮度（cd/㎡）" width="150" >
                                <template slot-scope="scope">
                                    <span v-show="scope.row.lightness != null && scope.row.lightness != ''">≥{{scope.row.lightness}}</span>
                                </template>
                            </el-table-column>
                            <el-table-column prop="lightnessFen" label="最小亮度得分" v-if="currentLeftRow.contrastType == 2 && lightnessFenShow" width="150" >
                            </el-table-column>
                            <el-table-column prop="evenness" label="均匀度" >
                                <template slot-scope="scope">
                                    <span v-show="scope.row.evenness != null && scope.row.evenness != ''">≥{{scope.row.evenness}}</span>
                                </template>
                            </el-table-column>
                        </template>
                        <template v-show="LeftRowLampparamInfo.projectLampparamVo.contestTypeString=='洗墙' || LeftRowLampparamInfo.projectLampparamVo.contestTypeString=='柱子'|| LeftRowLampparamInfo.projectLampparamVo.contestTypeString=='瓦楞'|| LeftRowLampparamInfo.projectLampparamVo.contestTypeString=='自发光线'|| LeftRowLampparamInfo.projectLampparamVo.contestTypeString=='单侧导光'|| LeftRowLampparamInfo.projectLampparamVo.contestTypeString=='双侧导光'">
                            <el-table-column prop="lumSize" label="D(m)" width="120" ></el-table-column>
                            <el-table-column prop="testAngle" label="测试角度" width="120" ></el-table-column>
                            <el-table-column prop="lightnessAve" label="平均亮度（cd/㎡）" width="150" >
                            </el-table-column>
                            <el-table-column prop="lightnessAveFen" label="平均亮度得分" v-if="currentLeftRow.contrastType == 2 && lightnessAveFenShow" width="150" >
                            </el-table-column>
                            
                            <el-table-column prop="lightnessMax" label="最大亮度（cd /㎡）" width="150" >
                                <template slot-scope="scope">
                                    <span v-show="scope.row.lightnessMax != null && scope.row.lightnessMax != ''">≤{{scope.row.lightnessMax}}</span>
                                </template>
                            </el-table-column>
                            <el-table-column prop="lightnessMaxFen" label="最大亮度得分" v-if="currentLeftRow.contrastType == 2 && lightnessMaxFenShow" width="150" >
                            </el-table-column>
                            <el-table-column prop="lightness" label="最小亮度（cd/㎡）" width="150" >
                                <template slot-scope="scope">
                                    <span v-show="scope.row.lightness != null && scope.row.lightness != ''">≥{{scope.row.lightness}}</span>
                                </template>
                            </el-table-column>
                            <el-table-column prop="lightnessFen" label="最小亮度得分" v-if="currentLeftRow.contrastType == 2 && lightnessFenShow" width="150" >
                            </el-table-column>
                            <el-table-column prop="evenness" label="均匀度" >
                                <template slot-scope="scope">
                                    <span v-show="scope.row.evenness != null && scope.row.evenness != ''">≥{{scope.row.evenness}}</span>
                                </template>
                            </el-table-column>
                        </template>
                        <el-table-column prop="" label="本次送检">
                            <template slot-scope="scope">
                                <span v-show="scope.row.designCode != null && LeftRowLampparamInfo.projectLampparamVo.unionCode != null">{{scope.row.designCode == LeftRowLampparamInfo.projectLampparamVo.unionCode ? '是':''}}</span>
                            </template>
                        </el-table-column>
                        <template  v-if="currentLeftRow.contrastType == 2">
                            <el-table-column prop="contrastDetection.score" label="产品性能"></el-table-column>
                            <el-table-column prop="contrastDetection.sampleFlag" label="线上投递">
                                <template slot-scope="scope"> {{scope.row.sampleFlag ? '是' : '否'}}</template>
                            </el-table-column>
                            <el-table-column prop="contrastDetection.isFit" label="符合">
                                <template slot-scope="scope"> {{scope.row.isFit ? '是' : '否'}}</template>
                            </el-table-column>
                        </template>
                </el-table> -->
                <el-pagination
                    @size-change="handleSizeChangeRightTable"
                    :current-page="rightRequest.page"
                    :page-size="10"
                    layout="total, prev, pager, next, jumper"
                    :total="rightTableCount">
                </el-pagination>
            </div>
        </div>
        
        <!-- 灯参编号 详情 -->
        <parameterLampDetail ref="detail"></parameterLampDetail>
        <selectLampDetail ref="selectLampDtail"></selectLampDetail>
    </div>
</div>
</template>   
<script>
import _ from 'lodash'
import parameterLampDetail from '@/views/component/parameterLampDetail.vue'
import selectLampDetail from '@/views/component/selectLampDetail.vue'
export default {
    data(){
        return{
            loading:false,
            cankao1:true,
            cankao2:false,
            lightnessAveFenShow:false,
            lightnessMaxFenShow:false,
            lightnessFenShow:false,
            lightIntensity10FenShow:false,
            lightIntensity1FenShow:false,
            lightIntensity2FenShow:false,
            lightIntensity3FenShow:false,
            lightIntensity4FenShow:false,
            lightIntensity5FenShow:false,
            lightIntensity6FenShow:false,
            lightIntensity7FenShow:false,
            lightIntensity8FenShow:false,
            lightIntensity9FenShow:false,
            leftTableRow:{},
            //左侧列表相关
            sdefc:300,
            sdefc2:400,
            currentProject:{},
            lefttableCount:0,
            lefttableData:[],
            leftTableCheckBox:[],
            leftRequest:{
                projectId:0,// (integer, optional): 根项目ID ,             //必填项
                contrastType:"",// (string, optional): 对比类型（1-定标对比 2-定样对比 3-抽样对比） ,              //必填项
                page:1,// (integer, optional): 当前页面 ,
                rows:10,// (integer, optional): 每页显示的行数 ,
                lampparamNoLike:'',
            },

            //日期修改相关
            dateSettingsBegin:'',
            dateSettingsEnd:'',
            dateSettingsContrastType:"1",
            showDateSettingsFlag:false,
            pickerOptionsStart: {
                disabledDate: time => {
                    if (this.dateSettingsEnd) {
                        return time.getTime() > new Date(this.dateSettingsEnd).getTime()
                    }
                }
            },
            pickerOptionsEnd: {
                disabledDate: time => {
                    if (this.dateSettingsBegin) {
                        return time.getTime() < new Date(this.dateSettingsBegin).getTime() - 86400000
                    }
                }
            },
            
            //添加弹窗相关
            showAddLeft:false,
            addLeftTitle:'',
            typeList:[],
            leftAddRequest:{
                page:1,
                rows:6,
                contestType:'',
                lampPowerMax:'',
                lampPowerMin:'',
                lampparamNoLike:'',
                makingWay:1,
            },
            leftAddTableData:[],
            leftAddTableCount:0,
            leftAddTableCheckBox:[],

            //编辑征集邀请
            showEditZhengji:false,
            lampBrandList:[],
            lampBrandListBak:[],
            chooselampBrandList:[],
            searchBrand:'',//搜索品牌关键字

            //编辑同类灯参
            leftEditTongLeiView:false,
            leftEditTongLeiTitle:'同类灯参',
            tongleiTableData:[],
            EditTongLeiCount:0,
            currentEditTongLeiInfo:{}, //已选所有信息
            leftCheckedList:[], //已选同类灯参

            //右侧列表查询相关
            DataTypeList:[
            {
                label:'典型检测(蓝)',
                value:'1'
            },
            {
                label:'项目检测',
                value:'2'
            },
            ],
            onlySeed:false,
            chooseDataType:['1','2'], //典型 项目
            currentLeftRow:{},
            LeftRowLampparamInfo:{
                contestTypeDict:{},
                projectLampparamVo:{
                    contestTypeString:''
                },
                projectParamindexList:[]
            },
            showRightBrand:false,
            lampBrandListRight:[],
            lampBrandListRightBak:[],
            chooselampBrandListRight:[],
            rightRequest:{
                brandId:'',
                powerMin:'',
                powerMax:'',
                dataType:'',
                lightnessAve:'',
                lightnessAveMax:'',
                lightness:'',
                lightnessMax:'',
                evenness:'',
                page:1,
                rows:10
            },
            dectType:'1,2',
            rightTableData:[],
            rightTableCheckbox:[],
            rightTableCount:0,
            fuheBrand:[],

            //权重相关
            weightButtons:[],
            showPingFen1:false,
            showPingFen2:false,
            showPingFen3:false,
            pingfenRequest1:{
                lampparamNoLike:'',
            },
            pingfenTableData1:[],
            pingfenTableData2:[],
            pingfenSelList:[],
            choosePingFenXiang:[],
            evaluateAddViewcalculateType:'1',
            currentPingFen:{},
            checkboxYes:[],
            checkboxNo:[],
            yesRequest:{
                page:1,
                rows:10
            },
            noRequest:{
                page:1,
                rows:10
            },
            yesList :[],
            yesCount :0,
            noList:[],

            showDefaultLink:false,
            defaultLinkMan:'',
            defaultLinkPhone:''
        }
    },
    components:{
        parameterLampDetail,
        selectLampDetail
    },
    watch:{
        chooseDataType:function(val){
            if(this.chooseDataType.length > 0){
                var ids = ''
                for(var i = 0;i<this.chooseDataType.length;i++){
                    ids += this.chooseDataType[i] + ","
                }
                this.dectType = ids.substring(0,ids.length-1)
                this.onlySeed = false
            }
            this.loadRightBrand()
            this.searchRightTable(1)
        }
    },
    created(){
        var projectId = this.$route.query.id
        this.leftRequest.projectId = projectId
        this.getLeftList()

        //加载应用类型
        let self = this
        this.$http.get("/api/dictTypeAllList", {indexPinyin:'yingyongchangjingleixing'}, function(res) {
                if (res.success) {
                    self.typeList = res.data;
                }
        });

        this.$http.get("/api/projects/treeJson/"+projectId,{},function(res){
                if(res.success){
                    var data = res.data
                    self.currentProject = data[0]
                }
        })
        this.loadBrand();


        this.$http.get("/api/users/getCurrentUser", {}, function(res) {
            if (res.success) {
                self.showDefaultLink=res.data.organization.orgCode == "1100"
                self.defaultLinkMan=res.data.organizationApi.firstLinkman
                self.defaultLinkPhone=res.data.organizationApi.linkmanPhone
            }
        });
    },
    methods:{
        changeFit(row,fit){
            var data = row.contrastDetection
            data.isFit= fit
            
            let self = this
            this.$http.postObj('/api/contrast/createContrastDetection',data,function(res){
                if(res.success){
                    self.$message({
                            message: "操作成功！",
                            type: "success"
                    });
                    self.searchRightTable(1)
                }
            })
        },
        cankao11(){
            if(this.cankao1){
                this.cankao2 = false
            }else{
                this.cankao2 = true
            }
            this.changeLie()
        },
        cankao22(){
            if(this.cankao2){
                this.cankao1 = false
            }else{
                this.cankao1 = true
            }
            this.changeLie()
        },
        changeLie(){
            let self = this
            if(this.pingfenTableData2 != null && this.pingfenTableData2.length > 0){
                for(var i = 0;i<this.pingfenTableData2.length;i++){
                    var chooseItem = this.pingfenTableData2[i]
                    var highIndexScore = "";
                    var lowIndexScore = "";
                    if(this.cankao1){
                        var paramList = self.LeftRowLampparamInfo.projectParamindexList;
                        for(var j = 0;j<paramList.length;j++){
                        if(paramList[j].colorTemperatureStr == '全亮'){
                            if(chooseItem.evaluateIndex == "llightnessAveStr"){ //平均亮度区间 A~B，A填入高分效果值，B填入低分效果值
                                highIndexScore=paramList[j].brightnessAvgMax
                                lowIndexScore=paramList[j].brightnessAvgMin 
                            }else if(chooseItem.evaluateIndex == "lightnessMax"){ //最大亮度最大亮度为一个值，该值均填入高分效果值处和低分效果值文本框
                                highIndexScore=paramList[j].brightnessMax
                                lowIndexScore=paramList[j].brightnessMax 
                            }else if(chooseItem.evaluateIndex == "lightnessAve"){ //平均亮度
                                highIndexScore=paramList[j].brightnessAvgMax
                                lowIndexScore=paramList[j].brightnessAvgMin 
                            }else if(chooseItem.evaluateIndex == "lightness"){ 
                                highIndexScore=paramList[j].lightness
                                lowIndexScore=paramList[j].lightness 
                            }else if(chooseItem.evaluateIndex == "brightnessA"){ 
                                highIndexScore=paramList[j].brightnessA
                                lowIndexScore=paramList[j].brightnessA 
                            }else if(chooseItem.evaluateIndex == "evenness"){ 
                                highIndexScore=paramList[j].evenness
                                lowIndexScore=paramList[j].evenness 
                            }else if(chooseItem.evaluateIndex == "lightIntensity1"){ 
                                highIndexScore=paramList[j].level0
                                lowIndexScore=paramList[j].level0 
                            }else if(chooseItem.evaluateIndex == "lightIntensity6"){ 
                                highIndexScore=paramList[j].verticalUp30 
                                lowIndexScore=paramList[j].verticalUp30Max 
                            }else if(chooseItem.evaluateIndex == "lightIntensity8"){ 
                                highIndexScore=paramList[j].verticalUp60
                                lowIndexScore=paramList[j].verticalUp60 
                            }else if(chooseItem.evaluateIndex == "lightIntensity3"){ 
                                highIndexScore=paramList[j].down45 
                                lowIndexScore=paramList[j].down45Max 
                            }else if(chooseItem.evaluateIndex == "lightIntensity7"){ 
                                highIndexScore=paramList[j].verticalDown10
                                lowIndexScore=paramList[j].verticalDown10 
                            }else if(chooseItem.evaluateIndex == "lightIntensity4"){ 
                                highIndexScore=paramList[j].verticalDown60
                                lowIndexScore=paramList[j].verticalDown60 
                            }else if(chooseItem.evaluateIndex == "lightIntensity5"){ 
                                highIndexScore=paramList[j].levelLeft60
                                lowIndexScore=paramList[j].levelLeft60 
                            }else if(chooseItem.evaluateIndex == "lightIntensity2"){ 
                                highIndexScore=paramList[j].levelRight60
                                lowIndexScore=paramList[j].levelRight60 
                            }else if(chooseItem.evaluateIndex == "lightIntensity9"){ 
                                highIndexScore=paramList[j].vertical10Left60
                                lowIndexScore=paramList[j].vertical10Left60 
                            }else if(chooseItem.evaluateIndex == "lightIntensity10"){ 
                                highIndexScore=paramList[j].vertical10Right60
                                lowIndexScore=paramList[j].vertical10Right60 
                            }
                        }
                    }
                    }else{
                        var paramList = self.cankao2List
                        for(var j = 0;j<paramList.length;j++){
                            if(chooseItem.evaluateIndex == paramList[j].attrName){
                                highIndexScore=paramList[j].minValue != null ? paramList[j].minValue : ''
                                lowIndexScore=paramList[j].maxValue  != null ? paramList[j].maxValue  : ''
                            }
                        }
                    }
                    this.pingfenTableData2[i].highIndexScore = highIndexScore
                    this.pingfenTableData2[i].lowIndexScore = lowIndexScore
                }
            }
            console.log(this.pingfenTableData2)
                    
                    
        },
        exportBigTable(){
            let self = this
            var projectId  = this.leftRequest.projectId
            this.$http.postObj('/api/contrast/contrastDetection/exportExcel/'+projectId,{},function(res){
                self.downloadFile(res.data.fileName) //self.ImgPath + "/" +
            })
        },
        downloadFile(url){
            window.open(this.ImgPath + url)
        },
        rightTableRowClick(row) {
            if(row.id){
                this.$refs.selectLampDtail.show(row.id)
            }
        },
        //切换定标定洋
        changeType(val){
            this.leftRequest.contrastType = val  
            this.getLeftList();
        },
        handleCurrentChangeLeftTable(page){
            this.leftRequest.page = page
            this.getLeftList()
        },
        //获取左侧定标定洋列表
        getLeftList(){
            let self = this
            this.$http.postObj('/api/contrast/relationJson',this.leftRequest,function(res){
                if(res.success){
                    self.lefttableData = res.data.rows
                    self.lefttableCount = res.data.total
                    
                    if(self.lefttableCount > 0 && self.leftRequest.page == 1){
                        self.leftTableClickRow(self.lefttableData[0])
                    }
                }
            })
        },
        //详情
        showLampParamDetail(id){
            this.$refs.detail.show(id,false,'6',false)
        },
        loadBrand(){
            let self = this
            this.$http.postQuery('/api/brands/json',{isOrgState: true},function(res){
                if(res.success){
                    for(var i = 0;i<res.data.length;i++){
                        res.data[i].delFlag = '0'
                    }
                    self.lampBrandList = res.data;
                    self.lampBrandListBak = res.data;
                }
            })
        },
        handleSelectionChangeLeftTable(val) {
            this.leftTableCheckBox = val;
        },
        //删除左侧定标定样
        removeLeftTableData(){
            if(this.leftTableCheckBox.length == 0){
                this.$message.error("请先选择数据")
                return false
            }
            var idList = []
            for(var i = 0;i<this.leftTableCheckBox.length; i++){
                idList.push(this.leftTableCheckBox[i].id)
            }
            let self = this
            this.$confirm("您确定要删除吗？",'提示',{
                confirmButtonText: '确认',
                cancelButtonText: '取消',
                type: 'warning'
            }).then(()=>{
                this.$http.postObj('/api/contrast/batchDelete',idList,function(res){
                    if(res.success){
                            self.$message({
                                message: "操作成功！",
                                type: "success"
                            });
                            self.getLeftList(1)
                        }else{
                            self.$message.error(res.data)
                        }
                })
            }).catch(()=>{});
        },

        //显示时间修改弹窗
        showDateSettingsView(){
            if(this.leftTableCheckBox.length == 0){
                this.$message.error("请选择数据")
                return false;
            }
            this.dateSettingsBegin = ''
            this.dateSettingsEnd = ''
            this.dateSettingsContrastType = "1"
            this.showDateSettingsFlag = true
        },
        dateChangeBegin(val) {
            this.dateSettingsBegin = val;
        },
        dateCHangeEnd(val) {
            this.dateSettingsEnd = val;
        },
        //设置修改时间
        saveSettingsDateTime(){
            if(this.dateSettingsBegin == ''){
                this.$message.error('请选择开始时间')
                return false
            }
            if(this.dateSettingsEnd == ''){
                this.$message.error('请选择结束时间')
                return false
            }
            var ids = ''
            for(var i = 0;i<this.leftTableCheckBox.length;i++){
                ids += this.leftTableCheckBox[i].id + ","
            }
            ids = ids.substring(0,ids.length-1)
            let self = this
             this.$http.postObj('/api/contrast/batchUpdate',{ids:ids,startDate:this.dateSettingsBegin,endDate:this.dateSettingsEnd,contrastType:this.dateSettingsContrastType},function(res){
                if(res.success){
                    if(res.success){
                        self.$message({
                            message: "操作成功！",
                            type: "success"
                        });
                        self.showDateSettingsFlag = false
                        self.getLeftList(1)
                    }else{
                        self.$message.error(res.data)
                    }
                }
            })
        },
        dataTimeFormat(val){
            if(val != null && val != ''){
                return val.split(' ')[0]
            }
        },

        //显示添加定标定弹窗
        showAddLeftView(){
            this.showAddLeft = true
            this.leftAddRequest = {
                page:1,
                rows:6,
                contestType:'',
                lampPowerMax:'',
                lampPowerMin:'',
                lampparamNoLike:'',
                makingWay:1,
            }
            // this.addLeftTitle = '定标灯参'
            // if(this.leftRequest.contrastType == 2){
            //     this.addLeftTitle = '添加定样'
            // }

            this.leftAddSearch(1)
        },
        //左侧点击添加中 加载的列表
        leftAddSearch(page){
            this.leftAddRequest.page = page
            var targetProjectId = this.$route.query.id
            let self = this
            this.$http.postObj('/api/lampparams/contrast/pageJson/'+targetProjectId,this.leftAddRequest,function(res){
                if(res.success){
                    self.leftAddTableCount = res.data.total
                    console.log(self.leftAddTableCount)
                    self.leftAddTableData = res.data.rows
                }
            })
        },
        handleSelectionChangeLeftAddTable(val){
            this.leftAddTableCheckBox = val;
        },
        handleCurrentChangeLeftAddTable(page){
            this.leftAddSearch(page)
        },
        //添加定标定样
        CreateLeftTableData(contrastType){
            if(this.leftAddTableCheckBox==null || this.leftAddTableCheckBox.length == 0){
                this.$message.error('请选择数据')
                return false;
            }
            var ids = ''
            for(var i = 0;i<this.leftAddTableCheckBox.length;i++){
                ids += this.leftAddTableCheckBox[i].lampparamId + ","
            }
            ids = ids.substring(0,ids.length-1)
            var targetProjectId = this.$route.query.id
            var self = this
            this.$http.postObj('/api/contrast',{contrastType:contrastType,projectId:targetProjectId,lampparamIds:ids},function(res){
                if(res.success){
                        self.$message({
                            message: "操作成功！",
                            type: "success"
                        });
                        
                        self.showAddLeft = false
                        self.getLeftList()
                    }else{
                        self.$message.error(res.data)
                    }
            })
        },
        
        //显示编辑征集信息
        showEditZhengjiView(row){
            this.clearBrandList()
            let self = this
            this.$http.get('/api/contrast/view/'+row.id, {}, function(res) {
                if (res.success) {
                    if(res.data.collectBrandIds != null && res.data.collectBrandIds != ''){
                        var pidlist = res.data.collectBrandIds.split(',')
                        for(var i= 0;i<pidlist.length;i++){
                            for(var j = 0;j<self.lampBrandList.length;j++){

                                if(pidlist[i] == self.lampBrandList[j].id){
                                    self.chooseBrand(self.lampBrandList[j],j)
                                }
                            }
                        }
                    }
                    self.currentEditTongLeiInfo = res.data
                    if(self.showDefaultLink){
                    self.currentEditTongLeiInfo.linkMan = self.defaultLinkMan
                    self.currentEditTongLeiInfo.linkPhone =self.defaultLinkPhone
                    }
                    self.showEditZhengji = true
                }
            });
        },
        //选择品牌
        chooseBrand: function(item,index) {
            if(item.delFlag == '1'){
                this.lampBrandList[index].delFlag= "0"
            }else{
                this.lampBrandList[index].delFlag= "1"
            }
            var tempList = []
            for(var i = 0;i<this.lampBrandListBak.length;i++){
                if(this.lampBrandListBak[i].delFlag == "1"){
                    tempList.push(this.lampBrandListBak[i])
                }
            }
            this.chooselampBrandList=tempList
        },
        removeBrand(item){
            for(var i = 0;i<this.lampBrandList.length;i++){
                if(item.id == this.lampBrandList[i].id){
                    this.lampBrandList[i].delFlag= "0"
                }
            }
            var tempList = []
            for(var i = 0;i<this.lampBrandListBak.length;i++){
                if(this.lampBrandListBak[i].delFlag == "1"){
                    tempList.push(this.lampBrandListBak[i])
                }
            }
            this.chooselampBrandList=tempList
        },
        clearBrandList(){
            this.chooselampBrandList=[]
            for(var i = 0;i<this.lampBrandList.length;i++){
                this.lampBrandList[i].delFlag = "0"
            }

            for(var i = 0;i<this.lampBrandListBak.length;i++){
                this.lampBrandListBak[i].delFlag = "0"
            }
        },
        putBrand(){
            let tempval = '';
            let tempNames = '';
            for(var i = 0;i<this.chooselampBrandList.length;i++){
                tempval+=this.chooselampBrandList[i].id + ","
                tempNames+=this.chooselampBrandList[i].brandName + ","
            }
            tempval=tempval.substr(0,tempval.length-1)
            tempNames=tempNames.substr(0,tempNames.length-1)
            let self = this
             this.$http.putObj('/api/contrast',{contrastType:this.currentEditTongLeiInfo.contrastType,id:this.currentEditTongLeiInfo.id,projectId:this.currentEditTongLeiInfo.projectId,collectBrandNames:tempNames,collectBrandIds:tempval,linkPhone:this.currentEditTongLeiInfo.linkPhone,linkMan:this.currentEditTongLeiInfo.linkMan,projectCode:this.currentEditTongLeiInfo.projectCode,projectName:this.currentEditTongLeiInfo.projectName},function(res){
                if(res.success){
                    if(res.success){
                        self.$message({
                            message: "操作成功！",
                            type: "success"
                        });
                        self.showEditZhengji = false
                        self.getLeftList(1)
                    }else{
                        self.$message.error(res.data)
                    }
                }
            })
        },
        ClickSearchBrand(){
            var search = this.searchBrand.toLowerCase()
            if(search){
                this.lampBrandList = this.lampBrandListBak.filter(function(item) {
                    return item.brandName.toLowerCase().indexOf(search) > -1
                })
            }else{
                this.lampBrandList = this.lampBrandListBak
            }
        },

        //显示编辑同类灯参
        showEditTongLeiLeft(row){
            let self = this
            self.currentEditTongLeiInfo = {}
            self.leftEditTongLeiTitle=row.lampparamNo+'同类灯参'
            this.viewEditTonglei(row.id)
            self.leftEditTongLeiView = true
        },
        //同类灯参弹窗
        viewEditTonglei(id){
            let self = this
            this.$http.get('/api/contrast/view/'+id, {}, function(res) {
                if (res.success) {
                    self.leftCheckedList = []
                    if(res.data.identicalLampparamNo != null && res.data.identicalLampparamNo != '' && res.data.identicalLampparamIds != null && res.data.identicalLampparamIds != ''){
                        var nolist = res.data.identicalLampparamNo.split(',')
                        var pidlist = res.data.identicalLampparamIds.split(',')
                        for(var i= 0;i<nolist.length;i++){
                            self.leftCheckedList.push({
                                id:pidlist[i],
                                name:nolist[i]
                            })
                        }
                    }
                    self.currentEditTongLeiInfo = res.data
                    self.leftAddSearch(1) 
                }
            });
        },
        tongleiSFView(lampparamId){
            if(_.find(this.leftCheckedList,function(o){return o.id == lampparamId}) == undefined){
                return true
            }
            return false
        },
        //添加同类灯参
        CreateTongLei(row){
            let self = this
            var ids = '';
            if(self.leftCheckedList != null && self.leftCheckedList != ''){
                for(var i= 0;i<self.leftCheckedList.length;i++){
                    ids += self.leftCheckedList[i].id + ','
                }
            }
            ids = ids + row.lampparamId
            this.$http.putObj('/api/contrast',{contrastType:this.currentEditTongLeiInfo.contrastType,id:this.currentEditTongLeiInfo.id,projectId:this.currentEditTongLeiInfo.projectId,identicalLampparamIds:ids},function(res){
                if(res.success){
                    if(res.success){
                        self.$message({
                            message: "添加成功！",
                            type: "success"
                        });
                        self.viewEditTonglei(self.currentEditTongLeiInfo.id)
                        self.getLeftList()
                    }else{
                        self.$message.error(res.data)
                    }
                }
            })
        },
        //删除同类灯参
        removeEditTongLei(item){
            let self = this
            var ids = '';
            if(self.leftCheckedList != null && self.leftCheckedList != ''){
                for(var i= 0;i<self.leftCheckedList.length;i++){
                    if(self.leftCheckedList[i].id != item.id){
                        ids += self.leftCheckedList[i].id + ','
                    }
                }
            }
            ids = ids.substr(0,ids.length -1);
             this.$http.putObj('/api/contrast',{contrastType:this.currentEditTongLeiInfo.contrastType,id:this.currentEditTongLeiInfo.id,projectId:this.currentEditTongLeiInfo.projectId,identicalLampparamIds:ids},function(res){
                if(res.success){
                    if(res.success){
                        self.$message({
                            message: "操作成功！",
                            type: "success"
                        });
                        self.viewEditTonglei(self.currentEditTongLeiInfo.id)
                    }else{
                        self.$message.error(res.data)
                    }
                }
            })
        },

        //点击左侧 加载右侧
        leftTableClickRow(item){
            this.loading = true
            this.currentLeftRow = item
            let self = this
            this.$http.get('/api/lampparams/view/'+item.lampparamId,{},function(res){
                if(res.success){
                    self.LeftRowLampparamInfo = res.data
                }
            })
            // this.clearBrandListRight();
            this.resetRightTable();
            this.loadRightBrand();
            this.searchRightTable(1)
        },
        //查询右侧列表
        searchRightTable(page){

            this.lightnessAveFenShow=false
            this.lightnessMaxFenShow=false
            this.lightnessFenShow=false
            this.lightIntensity10FenShow=false
            this.lightIntensity1FenShow=false
            this.lightIntensity2FenShow=false
            this.lightIntensity3FenShow=false
            this.lightIntensity4FenShow=false
            this.lightIntensity5FenShow=false
            this.lightIntensity6FenShow=false
            this.lightIntensity7FenShow=false
            this.lightIntensity8FenShow=false
            this.lightIntensity9FenShow=false

            this.getWeightList()
            this.rightRequest.page = page
            var ids = ''
            if(this.chooselampBrandListRight != null && this.chooselampBrandListRight.length>0){
                for(var i = 0;i<this.chooselampBrandListRight.length ;i++){
                    ids += this.chooselampBrandListRight[i].id +","
                }
            }
            ids = ids.substr(0,ids.length-1)
            this.rightRequest.brandIds = ids
            let self = this
            this.$http.postQueryObj('/api/contrast/lampParamCompDetectionJson/'+this.currentLeftRow.designCode,{dectType:this.dectType},this.rightRequest,function(res){
                if(res.success){
                    var temp = res.data.detectionList.rows
                    for(var i = 0;i<temp.length;i++){
                        var allScore = ''
                        if(temp[i].contrastDetection != null){
                            allScore = temp[i].contrastDetection.standScore
                        }
                        if(allScore != null && allScore != ''){
                            allScore = JSON.parse(allScore)
                        }
                        console.log(allScore)
                        temp[i].lightnessAveFen = _.find(allScore,function(o){return o.evaluateIndex == 'lightnessAve'}) != undefined ? _.find(allScore,function(o){return o.evaluateIndex == 'lightnessAve'}).indexScore : ''
                        temp[i].lightnessMaxFen = _.find(allScore,function(o){return o.evaluateIndex == 'lightnessMax'}) != undefined ? _.find(allScore,function(o){return o.evaluateIndex == 'lightnessMax'}).indexScore : ''
                        temp[i].lightnessFen = _.find(allScore,function(o){return o.evaluateIndex == 'lightness'}) != undefined ? _.find(allScore,function(o){return o.evaluateIndex == 'lightness'}).indexScore : ''
                        temp[i].lightIntensity1Fen = _.find(allScore,function(o){return o.evaluateIndex == 'lightIntensity1'}) != undefined ? _.find(allScore,function(o){return o.evaluateIndex == 'lightIntensity1'}).indexScore : ''
                        temp[i].lightIntensity3Fen = _.find(allScore,function(o){return o.evaluateIndex == 'lightIntensity3'}) != undefined ? _.find(allScore,function(o){return o.evaluateIndex == 'lightIntensity3'}).indexScore : ''
                        temp[i].lightIntensity2Fen = _.find(allScore,function(o){return o.evaluateIndex == 'lightIntensity2'}) != undefined ? _.find(allScore,function(o){return o.evaluateIndex == 'lightIntensity2'}).indexScore : ''
                        temp[i].lightIntensity8Fen = _.find(allScore,function(o){return o.evaluateIndex == 'lightIntensity8'}) != undefined ? _.find(allScore,function(o){return o.evaluateIndex == 'lightIntensity8'}).indexScore : ''
                        temp[i].lightIntensity4Fen = _.find(allScore,function(o){return o.evaluateIndex == 'lightIntensity4'}) != undefined ? _.find(allScore,function(o){return o.evaluateIndex == 'lightIntensity4'}).indexScore : ''
                        temp[i].lightIntensity5Fen = _.find(allScore,function(o){return o.evaluateIndex == 'lightIntensity5'}) != undefined ? _.find(allScore,function(o){return o.evaluateIndex == 'lightIntensity5'}).indexScore : ''
                        temp[i].lightIntensity6Fen = _.find(allScore,function(o){return o.evaluateIndex == 'lightIntensity6'}) != undefined ? _.find(allScore,function(o){return o.evaluateIndex == 'lightIntensity6'}).indexScore : ''
                        temp[i].lightIntensity9Fen = _.find(allScore,function(o){return o.evaluateIndex == 'lightIntensity9'}) != undefined ? _.find(allScore,function(o){return o.evaluateIndex == 'lightIntensity9'}).indexScore : ''
                        temp[i].lightIntensity10Fen = _.find(allScore,function(o){return o.evaluateIndex == 'lightIntensity10'}) != undefined ? _.find(allScore,function(o){return o.evaluateIndex == 'lightIntensity10'}).indexScore : ''
                        temp[i].lightIntensity7Fen = _.find(allScore,function(o){return o.evaluateIndex == 'lightIntensity7'}) != undefined ? _.find(allScore,function(o){return o.evaluateIndex == 'lightIntensity7'}).indexScore : ''
                    }

                    for(var i = 0;i<temp.length;i++){
                        console.log(temp[i].lightnessAveFen)
                        console.log(temp[i].lightnessAveFen != null && temp[i].lightnessAveFen != '')
                        if(temp[i].lightnessAveFen != null && temp[i].lightnessAveFen != ''){
                            self.lightnessAveFenShow=true
                        }
                        if(temp[i].lightnessMaxFen != null && temp[i].lightnessMaxFen != ''){
                            self.lightnessMaxFenShow=true
                        }
                        if(temp[i].lightnessFen != null && temp[i].lightnessFen != ''){
                            self.lightnessFenShow=true
                        }
                        if(temp[i].lightIntensity10Fen != null && temp[i].lightIntensity10Fen != ''){
                            self.lightIntensity10FenShow=true
                        }
                        if(temp[i].lightIntensity1Fen != null && temp[i].lightIntensity1Fen != ''){
                            self.lightIntensity1FenShow=true
                        }
                        if(temp[i].lightIntensity2Fen != null && temp[i].lightIntensity2Fen != ''){
                            self.lightIntensity2FenShow=true
                        }
                        if(temp[i].lightIntensity3Fen != null && temp[i].lightIntensity3Fen != ''){
                            self.lightIntensity3FenShow=true
                        }
                        if(temp[i].lightIntensity4Fen != null && temp[i].lightIntensity4Fen != ''){
                            self.lightIntensity4FenShow=true
                        }
                        if(temp[i].lightIntensity5Fen != null && temp[i].lightIntensity5Fen != ''){
                            self.lightIntensity5FenShow=true
                        }
                        if(temp[i].lightIntensity6Fen != null && temp[i].lightIntensity6Fen != ''){
                            self.lightIntensity6FenShow=true
                        }
                        if(temp[i].lightIntensity7Fen != null && temp[i].lightIntensity7Fen != ''){
                            self.lightIntensity7FenShow=true
                        }
                        if(temp[i].lightIntensity8Fen != null && temp[i].lightIntensity8Fen != ''){
                            self.lightIntensity8FenShow=true
                        }
                        if(temp[i].lightIntensity9Fen != null && temp[i].lightIntensity9Fen != ''){
                            self.lightIntensity9FenShow=true
                        }
                    }
                    console.log(this.lightnessAveFenShow)



                    // let lumSize = '';
                    // if(self.LeftRowLampparamInfo.projectLampparamVo.lumSizeMin != null && self.LeftRowLampparamInfo.projectLampparamVo.lumSizeMin != '' &&self.LeftRowLampparamInfo.projectLampparamVo.lumSize != null && self.LeftRowLampparamInfo.projectLampparamVo.lumSize != ''){
                    //     lumSize = self.LeftRowLampparamInfo.projectLampparamVo.lumSizeMin + "~" +self.LeftRowLampparamInfo.projectLampparamVo.lumSize
                    // }else if(self.LeftRowLampparamInfo.projectLampparamVo.lumSizeMin != null && self.LeftRowLampparamInfo.projectLampparamVo.lumSizeMin != ''){
                    //     lumSize = '≥' + self.LeftRowLampparamInfo.projectLampparamVo.lumSizeMin;
                    // }else if(self.LeftRowLampparamInfo.projectLampparamVo.lumSize != null && self.LeftRowLampparamInfo.projectLampparamVo.lumSize != ''){
                    //     lumSize = '≤' + self.LeftRowLampparamInfo.projectLampparamVo.lumSize
                    // }
                    // let lightnessAve = '';
                    // if(self.LeftRowLampparamInfo.projectLampparamVo.brightnessAvgMin != null && self.LeftRowLampparamInfo.projectLampparamVo.brightnessAvgMin != '' &&self.LeftRowLampparamInfo.projectLampparamVo.brightnessAvgMax != null && self.LeftRowLampparamInfo.projectLampparamVo.brightnessAvgMax != ''){
                    //     lightnessAve = self.LeftRowLampparamInfo.projectLampparamVo.brightnessAvgMin + "~" +self.LeftRowLampparamInfo.projectLampparamVo.brightnessAvgMax
                    // }else if(self.LeftRowLampparamInfo.projectLampparamVo.brightnessAvgMin != null && self.LeftRowLampparamInfo.projectLampparamVo.brightnessAvgMin != ''){
                    //     lightnessAve = '≥' + self.LeftRowLampparamInfo.projectLampparamVo.brightnessAvgMin;
                    // }else if(self.LeftRowLampparamInfo.projectLampparamVo.brightnessAvgMax != null && self.LeftRowLampparamInfo.projectLampparamVo.brightnessAvgMax != ''){
                    //     lightnessAve = '≤' + self.LeftRowLampparamInfo.projectLampparamVo.brightnessAvgMax
                    // }
                    // let lightIntensity6 = '';
                    // if(self.LeftRowLampparamInfo.projectLampparamVo.verticalUp30 != null && self.LeftRowLampparamInfo.projectLampparamVo.verticalUp30 != '' &&self.LeftRowLampparamInfo.projectLampparamVo.verticalUp30Max != null && self.LeftRowLampparamInfo.projectLampparamVo.verticalUp30Max != ''){
                    //     lightIntensity6 = self.LeftRowLampparamInfo.projectLampparamVo.verticalUp30 + "~" +self.LeftRowLampparamInfo.projectLampparamVo.verticalUp30Max
                    // }else if(self.LeftRowLampparamInfo.projectLampparamVo.verticalUp30 != null && self.LeftRowLampparamInfo.projectLampparamVo.verticalUp30 != ''){
                    //     lightIntensity6 = '≥' + self.LeftRowLampparamInfo.projectLampparamVo.verticalUp30;
                    // }else if(self.LeftRowLampparamInfo.projectLampparamVo.verticalUp30Max != null && self.LeftRowLampparamInfo.projectLampparamVo.verticalUp30Max != ''){
                    //     lightIntensity6 = '≤' + self.LeftRowLampparamInfo.projectLampparamVo.verticalUp30Max
                    // }
                    // let lightIntensity3 = '';
                    //  if(self.LeftRowLampparamInfo.projectLampparamVo.down45 != null && self.LeftRowLampparamInfo.projectLampparamVo.down45 != '' &&self.LeftRowLampparamInfo.projectLampparamVo.down45Max != null && self.LeftRowLampparamInfo.projectLampparamVo.down45Max != ''){
                    //     lightIntensity3 = self.LeftRowLampparamInfo.projectLampparamVo.down45 + "~" +self.LeftRowLampparamInfo.projectLampparamVo.down45Max
                    // }else if(self.LeftRowLampparamInfo.projectLampparamVo.down45 != null && self.LeftRowLampparamInfo.projectLampparamVo.down45 != ''){
                    //     lightIntensity3 = '≥' + self.LeftRowLampparamInfo.projectLampparamVo.down45;
                    // }else if(self.LeftRowLampparamInfo.projectLampparamVo.down45Max != null && self.LeftRowLampparamInfo.projectLampparamVo.down45Max != ''){
                    //     lightIntensity3 = '≤' + self.LeftRowLampparamInfo.projectLampparamVo.down45Max
                    // }

                    let lumSize = '';
                    if(self.LeftRowLampparamInfo.projectLampparamVo.lumSizeMin != null && self.LeftRowLampparamInfo.projectLampparamVo.lumSizeMin != '' &&self.LeftRowLampparamInfo.projectLampparamVo.lumSize != null && self.LeftRowLampparamInfo.projectLampparamVo.lumSize != ''){
                        lumSize = self.LeftRowLampparamInfo.projectLampparamVo.lumSizeMin + "~" +self.LeftRowLampparamInfo.projectLampparamVo.lumSize
                    }else if(self.LeftRowLampparamInfo.projectLampparamVo.lumSizeMin != null && self.LeftRowLampparamInfo.projectLampparamVo.lumSizeMin != ''){
                        lumSize = '' + self.LeftRowLampparamInfo.projectLampparamVo.lumSizeMin;
                    }else if(self.LeftRowLampparamInfo.projectLampparamVo.lumSize != null && self.LeftRowLampparamInfo.projectLampparamVo.lumSize != ''){
                        lumSize = '' + self.LeftRowLampparamInfo.projectLampparamVo.lumSize
                    }
                    let lightIntensity6 = '';
                    if(self.LeftRowLampparamInfo.projectLampparamVo.verticalUp30 != null && self.LeftRowLampparamInfo.projectLampparamVo.verticalUp30 != '' &&self.LeftRowLampparamInfo.projectLampparamVo.verticalUp30Max != null && self.LeftRowLampparamInfo.projectLampparamVo.verticalUp30Max != ''){
                        lightIntensity6 = self.LeftRowLampparamInfo.projectLampparamVo.verticalUp30 + "~" +self.LeftRowLampparamInfo.projectLampparamVo.verticalUp30Max
                    }else if(self.LeftRowLampparamInfo.projectLampparamVo.verticalUp30 != null && self.LeftRowLampparamInfo.projectLampparamVo.verticalUp30 != ''){
                        lightIntensity6 = '' + self.LeftRowLampparamInfo.projectLampparamVo.verticalUp30;
                    }else if(self.LeftRowLampparamInfo.projectLampparamVo.verticalUp30Max != null && self.LeftRowLampparamInfo.projectLampparamVo.verticalUp30Max != ''){
                        lightIntensity6 = '' + self.LeftRowLampparamInfo.projectLampparamVo.verticalUp30Max
                    }
                    let lightIntensity3 = '';
                     if(self.LeftRowLampparamInfo.projectLampparamVo.down45 != null && self.LeftRowLampparamInfo.projectLampparamVo.down45 != '' &&self.LeftRowLampparamInfo.projectLampparamVo.down45Max != null && self.LeftRowLampparamInfo.projectLampparamVo.down45Max != ''){
                        lightIntensity3 = self.LeftRowLampparamInfo.projectLampparamVo.down45 + "~" +self.LeftRowLampparamInfo.projectLampparamVo.down45Max
                    }else if(self.LeftRowLampparamInfo.projectLampparamVo.down45 != null && self.LeftRowLampparamInfo.projectLampparamVo.down45 != ''){
                        lightIntensity3 = '' + self.LeftRowLampparamInfo.projectLampparamVo.down45;
                    }else if(self.LeftRowLampparamInfo.projectLampparamVo.down45Max != null && self.LeftRowLampparamInfo.projectLampparamVo.down45Max != ''){
                        lightIntensity3 = '' + self.LeftRowLampparamInfo.projectLampparamVo.down45Max
                    }
                    var paramList = self.LeftRowLampparamInfo.projectParamindexList;
                    for(var i = 0;i<paramList.length;i++){
                        if(paramList[i].colorTemperatureStr == '全亮'){

                    let lightnessAve = '';
                    if(self.LeftRowLampparamInfo.projectParamindexList[i].brightnessAvgMin != null && self.LeftRowLampparamInfo.projectParamindexList[i].brightnessAvgMin != '' &&self.LeftRowLampparamInfo.projectParamindexList[i].brightnessAvgMax != null && self.LeftRowLampparamInfo.projectParamindexList[i].brightnessAvgMax != ''){
                        lightnessAve = self.LeftRowLampparamInfo.projectParamindexList[i].brightnessAvgMin + "~" +self.LeftRowLampparamInfo.projectParamindexList[i].brightnessAvgMax
                    }else if(self.LeftRowLampparamInfo.projectParamindexList[i].brightnessAvgMin != null && self.LeftRowLampparamInfo.projectParamindexList[i].brightnessAvgMin != ''){
                        lightnessAve = '' + self.LeftRowLampparamInfo.projectParamindexList[i].brightnessAvgMin;
                    }else if(self.LeftRowLampparamInfo.projectParamindexList[i].brightnessAvgMax != null && self.LeftRowLampparamInfo.projectParamindexList[i].brightnessAvgMax != ''){
                        lightnessAve = '' + self.LeftRowLampparamInfo.projectParamindexList[i].brightnessAvgMax
                    }
                            temp.unshift({
                                posCode:self.LeftRowLampparamInfo.projectLampparamVo.lampparamNo,
                                colorTempe:self.LeftRowLampparamInfo.projectLampparamVo.colorTemperatureStr,
                                power:self.LeftRowLampparamInfo.projectLampparamVo.lampPower,
                                voltage:self.LeftRowLampparamInfo.projectLampparamVo.workVoltage,
                                lumSize:lumSize,
                                surfaceType:self.LeftRowLampparamInfo.projectParamindexList[i].faceType,
                                lightnessAve:lightnessAve,
                                lightness:self.LeftRowLampparamInfo.projectParamindexList[i].brightnessMin,
                                lightnessMax:self.LeftRowLampparamInfo.projectParamindexList[i].brightnessMax,
                                brightnessA:self.LeftRowLampparamInfo.projectParamindexList[i].brightnessA,
                                evenness:self.LeftRowLampparamInfo.projectParamindexList[i].evenness,
                                lightIntensity1:self.LeftRowLampparamInfo.projectParamindexList[i].level0,
                                lightIntensity6:lightIntensity6,
                                lightIntensity8:self.LeftRowLampparamInfo.projectParamindexList[i].verticalUp60,
                                lightIntensity3:self.LeftRowLampparamInfo.projectParamindexList[i].down45  +"-"+self.LeftRowLampparamInfo.projectParamindexList[i].down45Max,
                                lightIntensity7:self.LeftRowLampparamInfo.projectParamindexList[i].verticalDown10,
                                lightIntensity4:self.LeftRowLampparamInfo.projectParamindexList[i].verticalDown60,
                                lightIntensity5:self.LeftRowLampparamInfo.projectParamindexList[i].levelLeft60,
                                lightIntensity2:self.LeftRowLampparamInfo.projectParamindexList[i].levelRight60,
                                lightIntensity9:self.LeftRowLampparamInfo.projectParamindexList[i].vertical10Left60,
                                lightIntensity10:self.LeftRowLampparamInfo.projectParamindexList[i].vertical10Right60,
                                contrastDetection:{}
                            })
                        }
                    }
                    self.rightTableData = temp;
                    self.rightTableCount = res.data.detectionList.total
                    self.fuheBrand = res.data.brandList 
                    self.loading = false
                }else{
                    
            self.loading = false
                }
            })
        },
        tableRowClassName({row, rowIndex}){
            if(rowIndex == 0){
                return 'firstRow'
            }else if(rowIndex == 1 && this.LeftRowLampparamInfo.projectParamindexList.length>1){
                return 'firstRow'
            }else if(row.dataType == 1){
                return 'blurRow'
            }
        },
        resetRightTable(){
            this.rightRequest={
                brandId:'',
                powerMin:'',
                powerMax:'',
                dataType:'',
                lightnessAve:'',
                lightnessAveMax:'',
                lightness:'',
                lightnessMax:'',
                evenness:'',
                page:1,
                rows:10
            }
        },
        handleSelectionChangeRightTable(val){
            this.rightTableCheckbox = val
        },
        handleSizeChangeRightTable(page){
            this.rightRequest.page = page
            this.searchRightTable(page)
        },

        showRightBrandView(){
            this.showRightBrand = true
        },
        loadRightBrand(){
            let self = this
            this.$http.postQuery('/api/contrast/lampParamCompBrandJson/'+this.currentLeftRow.designCode,{dectType:this.dectType},function(res){
                if(res.success){
                    for(var i = 0;i<res.data.length;i++){
                        res.data[i].delFlag = '0'
                    }
                    self.lampBrandListRight = res.data;
                    self.lampBrandListRightBak = res.data;
                }
            })
        },
        //选择品牌
        chooseBrandRight: function(item,index) {
            if(item.delFlag == '1'){
                this.lampBrandListRight[index].delFlag= "0"
            }else{
                this.lampBrandListRight[index].delFlag= "1"
            }
            var tempList = []
            for(var i = 0;i<this.lampBrandListRightBak.length;i++){
                if(this.lampBrandListRightBak[i].delFlag == "1"){
                    tempList.push(this.lampBrandListRightBak[i])
                }
            }
            this.chooselampBrandListRight=tempList
        },
        removeBrandRight(item){
            for(var i = 0;i<this.lampBrandListRight.length;i++){
                if(item.id == this.lampBrandListRight[i].id){
                    this.lampBrandListRight[i].delFlag= "0"
                }
            }
            var tempList = []
            for(var i = 0;i<this.lampBrandListRightBak.length;i++){
                if(this.lampBrandListRightBak[i].delFlag == "1"){
                    tempList.push(this.lampBrandListRightBak[i])
                }
            }
            this.chooselampBrandListRight=tempList
        },
        clearBrandListRight(){
            this.chooselampBrandListRight=[]
            for(var i = 0;i<this.lampBrandListRight.length;i++){
                this.lampBrandListRight[i].delFlag = "0"
            }

            for(var i = 0;i<this.lampBrandListRightBak.length;i++){
                this.lampBrandListRightBak[i].delFlag = "0"
            }
        },
        ClickSearchBrandRight(){
            var search = this.searchBrand.toLowerCase()
            if(search){
                this.lampBrandListRight = this.lampBrandListRightBak.filter(function(item) {
                    return item.brandName.toLowerCase().indexOf(search) > -1
                })
            }else{
                this.lampBrandListRight = this.lampBrandListRightBak
            }
        },
        changeDataType(){
            if(!this.onlySeed){
                this.dectType = '3'
                this.chooseDataType = []
            }else{
                // this.dectType = '1,2'
                // this.onlySeed = false
            }
        },
        checkFloatTwo(){
            var lightnessAveMin = this.rightRequest.lightnessAveMin
            var lightnessAveMax = this.rightRequest.lightnessAveMax
            var lightnessMaxMax = this.rightRequest.lightnessMaxMax
            var brightnessAMax = this.rightRequest.brightnessAMax
            var evennessMin = this.rightRequest.evennessMin
            var lightnessAveMinA = this.rightRequest.lightnessAveMinA
            var lightnessAveMaxA = this.rightRequest.lightnessAveMaxA
            var lightnessMaxMaxA = this.rightRequest.lightnessMaxMaxA
            var lightnessStartA = this.rightRequest.lightnessStartA
            var evennessMinA = this.rightRequest.evennessMinA
            var lightnessAveMinB = this.rightRequest.lightnessAveMinB
            var lightnessAveMaxB = this.rightRequest.lightnessAveMaxB
            var lightnessMaxMaxB = this.rightRequest.lightnessMaxMaxB
            var lightnessStartB = this.rightRequest.lightnessStartB
            var evennessMinB = this.rightRequest.evennessMinB
            var lightnessStart = this.rightRequest.lightnessStart
            var powerMin = this.rightRequest.powerMin
            var powerMax = this.rightRequest.powerMax

            if(lightnessAveMin != null &&lightnessAveMin != '' && !isNaN(lightnessAveMin)){
                this.rightRequest.lightnessAveMin = parseFloat(lightnessAveMin).toFixed(2)
            }
            
            if(lightnessAveMax != null &&lightnessAveMax != '' && !isNaN(lightnessAveMax)){
                this.rightRequest.lightnessAveMax = parseFloat(lightnessAveMax).toFixed(2)
            }
            
            if(lightnessMaxMax != null && lightnessMaxMax != '' && !isNaN(lightnessMaxMax)){
                this.rightRequest.lightnessMaxMax = parseFloat(lightnessMaxMax).toFixed(2)
            }
            
            if(brightnessAMax != null && brightnessAMax != '' && !isNaN(brightnessAMax)){
                this.rightRequest.brightnessAMax = parseFloat(brightnessAMax).toFixed(2)
            }
            
            if(evennessMin != null &&evennessMin != '' && !isNaN(evennessMin)){
                this.rightRequest.evennessMin = parseFloat(evennessMin).toFixed(2)
            }
            
            if(lightnessAveMinA != null &&lightnessAveMinA != '' && !isNaN(lightnessAveMinA)){
                this.rightRequest.lightnessAveMinA = parseFloat(lightnessAveMinA).toFixed(2)
            }
            
            if(lightnessAveMaxA != null &&lightnessAveMaxA != '' && !isNaN(lightnessAveMaxA)){
                this.rightRequest.lightnessAveMaxA = parseFloat(lightnessAveMaxA).toFixed(2)
            }
            
            if(lightnessMaxMaxA != null &&lightnessMaxMaxA != ''&& !isNaN(lightnessMaxMaxA)){
                this.rightRequest.lightnessMaxMaxA = parseFloat(lightnessMaxMaxA).toFixed(2)
            }
            
            if(lightnessStartA != null &&lightnessStartA != '' && !isNaN(lightnessStartA)){
                this.rightRequest.lightnessStartA = parseFloat(lightnessStartA).toFixed(2)
            }
            
            if(evennessMinA != null &&evennessMinA != '' && !isNaN(evennessMinA)){
                this.rightRequest.evennessMinA = parseFloat(evennessMinA).toFixed(2)
            }
            
            if(lightnessAveMinB != null &&lightnessAveMinB != '' && !isNaN(lightnessAveMinB)){
                this.rightRequest.lightnessAveMinB = parseFloat(lightnessAveMinB).toFixed(2)
            }
            
            if(lightnessAveMaxB != null && lightnessAveMaxB != '' && !isNaN(lightnessAveMaxB)){
                this.rightRequest.lightnessAveMaxB = parseFloat(lightnessAveMaxB).toFixed(2)
            }
            if(lightnessMaxMaxB != null &&lightnessMaxMaxB != '' && !isNaN(lightnessMaxMaxB)){
                this.rightRequest.lightnessMaxMaxB = parseFloat(lightnessMaxMaxB).toFixed(2)
            }
            if(lightnessStartB != null && lightnessStartB != '' && !isNaN(lightnessStartB)){
                this.rightRequest.lightnessStartB = parseFloat(lightnessStartB).toFixed(2)
            }
            if(evennessMinB != null &&evennessMinB != '' && !isNaN(evennessMinB)){
                this.rightRequest.evennessMinB = parseFloat(evennessMinB).toFixed(2)
            }
            if(lightnessStart != null &&lightnessStart != '' && !isNaN(lightnessStart)){
                this.rightRequest.lightnessStart = parseFloat(lightnessStart).toFixed(2)
            }
            if(powerMin != null &&powerMin != '' && !isNaN(powerMin)){
                this.rightRequest.powerMin = parseFloat(powerMin).toFixed(2)
            }
            if(powerMax != null &&powerMax != '' && !isNaN(powerMax)){
                this.rightRequest.powerMax = parseFloat(powerMax).toFixed(2)
            }

            
        },



        //获取右侧权重列表显示
        getWeightList(){
            let self = this
            var contestFrontId = this.currentLeftRow.contestFrontId
            this.$http.get('/api/contests/defaultWeightJson/'+contestFrontId,{contestFrontId:contestFrontId},function(res){
                self.weightButtons = res.data
            })
        },
        //根据权重查询右侧大列表
        searchRightWeightList(item){
            var ids = ''
            if(this.chooselampBrandListRight != null && this.chooselampBrandListRight.length>0){
                for(var i = 0;i<this.chooselampBrandListRight.length ;i++){
                    ids += this.chooselampBrandListRight[i].id +","
                }
            }
            ids = ids.substr(0,ids.length-1)
            this.rightRequest.brandIds = ids
            this.rightRequest.weightCode = item.weightCode
            this.$http.postQueryObj('/api/contrast/weightList/'+this.currentLeftRow.designCode,{dectType:this.dectType},this.rightRequest,function(res){
                if(res.success){
                    self.rightTableData = res.data.rows
                    self.rightTableCount = res.data.total
                }
            })
        },

        //显示评分标准
        showPingFenView(row){
            this.leftTableRow= row
            this.currentPingFen = {}
            this.pingfenTableData2 = []
            this.choosePingFenXiang = []
            this.evaluateAddViewcalculateType = '1'

            // this.showPingFen1 = true
            let self = this
            //加载添加时的评分项指标 下拉框1
            this.$http.get('/api/contrast/evaluate/indexList',{contestType:row.contestType},function(res){
                if(res.success){
                    var temp = res.data
                    for(var i = 0;i<temp.length;i++){
                        if(temp[i].indexName.indexOf('&')>-1){
                            temp[i].indexName = temp[i].indexName.replace('&deg;','°')
                        }
                    }
                    self.pingfenSelList = res.data
                }
            })
            this.$http.postObj('/api/contrast/evaluate/json',{contrastIds:row.id,projectId:row.projectId},function(res){
                console.log(res)
                if(res.success){
                    if(res.data == null || res.data.length == 0){
                        self.showAddPingFenView() //没有返回则添加
                    }else{
                        self.editPingFen(res.data[0])
                    }
                }
            })
            this.$http.get('/api/lampparams/view/'+row.lampparamId,{},function(res){
                if(res.success){
                    self.LeftRowLampparamInfo = res.data
                }
            })
            this.$http.postQuery('/api/contrast/getMaxMinDetectionJson/'+row.id,{},function(res){
                        console.log(res)
                        if(res.success){
                            if(res.data != null && res.data.length > 0){
                                for(var i = 0;i<res.data.length;i++){
                                    self.cankao2List = res.data;
                                    
                                }
                            }
                        }
                    })
            // this.pingfenList1(1)
        },
        getPingFenZhiBiaoTitle(code){
            var title = _.find(this.pingfenSelList,function(o){return o.attrName == code}).indexName
            return title
        },
        //获取评分设定列表
        pingfenList1(page){
            var projectId = this.$route.query.id
            let self = this
            this.$http.postObj('/api/contrast/evaluate/pageJson',{projectId:projectId},function(res){
                if(res.success){
                    self.pingfenTableData1 = res.data.rows
                }
            })

        },
        PingFenclickRow(item){
            this.currentPingFen = item
            console.log(item)
        },
        //显示添加评分弹窗
        showAddPingFenView(){
            this.choosePingFenXiang = []
            this.pingfenTableData2 = []
            this.evaluateAddViewcalculateType = '1'
            this.showPingFen2 = true
            this.cankao1 = true
            this.cankao2 = false
            this.editPingFenRow = {}
        },
        ChangePingFenXiang(){
            //find this row
            //遍历已选择的 ['1','2','3'] 
            let self = this
            console.log(this.choosePingFenXiang.length)
            for(var i = 0;i<this.choosePingFenXiang.length;i++){
                //查看1 有没有 没有就加
                let chooseVal = this.choosePingFenXiang[i]
                let chooseItem = _.find(this.pingfenSelList,function(o){return o.indexName == chooseVal})
                console.log(chooseItem)
                var row = _.find(this.pingfenTableData2,function(o){return o.evaluateIndex == chooseItem.attrName});
                console.log(row)
                //添加
                
                
                if(row == null || row == undefined){
                    var highIndexScore = "";
                    var lowIndexScore = "";
                if(this.cankao1){
                     var paramList = self.LeftRowLampparamInfo.projectParamindexList;
                    for(var i = 0;i<paramList.length;i++){
                        if(paramList[i].colorTemperatureStr == '全亮'){
                            if(chooseItem.attrName == "llightnessAveStr"){ //平均亮度区间 A~B，A填入高分效果值，B填入低分效果值
                                highIndexScore=paramList[i].brightnessAvgMax
                                lowIndexScore=paramList[i].brightnessAvgMin 
                            }else if(chooseItem.attrName == "lightnessMax"){ //最大亮度最大亮度为一个值，该值均填入高分效果值处和低分效果值文本框
                                highIndexScore=paramList[i].brightnessMax
                                lowIndexScore=paramList[i].brightnessMax 
                            }else if(chooseItem.attrName == "lightnessAve"){ //平均亮度
                                highIndexScore=paramList[i].brightnessAvgMax
                                lowIndexScore=paramList[i].brightnessAvgMin 
                            }else if(chooseItem.attrName == "lightness"){ 
                                highIndexScore=paramList[i].lightness
                                lowIndexScore=paramList[i].lightness 
                            }else if(chooseItem.attrName == "brightnessA"){ 
                                highIndexScore=paramList[i].brightnessA
                                lowIndexScore=paramList[i].brightnessA 
                            }else if(chooseItem.attrName == "evenness"){ 
                                highIndexScore=paramList[i].evenness
                                lowIndexScore=paramList[i].evenness 
                            }else if(chooseItem.attrName == "lightIntensity1"){ 
                                highIndexScore=paramList[i].level0
                                lowIndexScore=paramList[i].level0 
                            }else if(chooseItem.attrName == "lightIntensity6"){ 
                                highIndexScore=paramList[i].verticalUp30 
                                lowIndexScore=paramList[i].verticalUp30Max 
                            }else if(chooseItem.attrName == "lightIntensity8"){ 
                                highIndexScore=paramList[i].verticalUp60
                                lowIndexScore=paramList[i].verticalUp60 
                            }else if(chooseItem.attrName == "lightIntensity3"){ 
                                highIndexScore=paramList[i].down45 
                                lowIndexScore=paramList[i].down45Max 
                            }else if(chooseItem.attrName == "lightIntensity7"){ 
                                highIndexScore=paramList[i].verticalDown10
                                lowIndexScore=paramList[i].verticalDown10 
                            }else if(chooseItem.attrName == "lightIntensity4"){ 
                                highIndexScore=paramList[i].verticalDown60
                                lowIndexScore=paramList[i].verticalDown60 
                            }else if(chooseItem.attrName == "lightIntensity5"){ 
                                highIndexScore=paramList[i].levelLeft60
                                lowIndexScore=paramList[i].levelLeft60 
                            }else if(chooseItem.attrName == "lightIntensity2"){ 
                                highIndexScore=paramList[i].levelRight60
                                lowIndexScore=paramList[i].levelRight60 
                            }else if(chooseItem.attrName == "lightIntensity9"){ 
                                highIndexScore=paramList[i].vertical10Left60
                                lowIndexScore=paramList[i].vertical10Left60 
                            }else if(chooseItem.attrName == "lightIntensity10"){ 
                                highIndexScore=paramList[i].vertical10Right60
                                lowIndexScore=paramList[i].vertical10Right60 
                            }
                        }
                    }
                }else{
                    var paramList = self.cankao2List
                    for(var i = 0;i<paramList.length;i++){
                        if(chooseItem.attrName == paramList[i].attrName){
                            highIndexScore=paramList[i].minValue != null ? paramList[i].minValue : ''
                            lowIndexScore=paramList[i].maxValue  != null ? paramList[i].maxValue  : ''
                        }
                    }
                }
                    this.pingfenTableData2.push({
                        evaluateIndex:chooseItem.attrName,
                        evaluateText:chooseItem.indexName,
                        highScore:'100',
                        highIndexScore:highIndexScore,
                        lowScore:'60',
                        lowIndexScore:lowIndexScore,
                        weightScale:'',
                    })
                }
            }
            var i = 0;
            //遍历tabledata2 如果选择的取消了 要去除
            while(i < this.pingfenTableData2.length){
                this.needRemove()
                i++;
            }
        },
        needRemove(){
            for(var i = 0;i<this.pingfenTableData2.length;i++){
                //看看曾经选的还在不在
                let key = this.pingfenTableData2[i].evaluateText
                var row = _.find(this.choosePingFenXiang,function(o){return o == key})
                if(row == null || row == undefined){
                    //已经没了 需要删除
                    this.pingfenTableData2.splice(i,1)
                }
            }
        },
        saveAddPingFen(){
            let self = this
            var count = 0;
            for(var i = 0;i<this.pingfenTableData2.length;i++){
                count += parseFloat(this.pingfenTableData2[i].weightScale)
            }
            if(count > 100){
                this.$message.error('权重综合不可超过100')
                return false
            }
            
            for(var i = 0;i<this.pingfenTableData2.length;i++){
                this.pingfenTableData2[i].calculateType = this.evaluateAddViewcalculateType
                delete this.pingfenTableData2[i].evaluateText
            }
            let data = {
                projectId:this.$route.query.id,
                calculateType:this.evaluateAddViewcalculateType,
                evaluateStandList:this.pingfenTableData2,
                contrastIds: this.leftTableRow.id
            }
            if(this.editPingFenRow != null && this.editPingFenRow.id != null && this.editPingFenRow.id > 0){
                data.projectId = this.editPingFenRow.projectId
                data.id = this.editPingFenRow.id
                //编辑评分标准
                this.$http.putObj('/api/contrast/evaluate',data,function(res){
                    if(res.success){
                        self.$message({
                            message: "修改成功！",
                            type: "success"
                        });
                        self.showPingFen2 = false
                    }else{
                        self.$message.error(res.data)
                    }
                    // self.pingfenList1(1)
                })
            }else{
                this.$http.postObj('/api/contrast/evaluate',data,function(res){
                    if(res.success){
                        self.$message({
                            message: "添加成功！",
                            type: "success"
                        });
                        self.showPingFen2 = false
                    }else{
                        self.$message.error(res.data)
                    }
                    // self.pingfenList1(1)
                })
            }
        },

        //显示编辑评分弹窗
        showEditPingFenView(){
            console.log(this.currentPingFen.id)
            if(this.currentPingFen.id == undefined || this.currentPingFen.id =='' && this.currentPingFen.id < 0){
                this.$message.error('请先选择一条评分标准！')
                return false
            }
            this.loadYesList(1);
            this.loadNoList(1);
            this.showPingFen3 = true
        },
        loadYesList(page){
            this.yesRequest.page = page
            let self = this
            let projectId = this.$route.query.id 
            let id = this.currentPingFen.id
            
            //评分标准可选参评灯参列表
            this.$http.postObj('/api/contrast/evaluate/noSelect/'+projectId+'/'+id,this.yesRequest,function(res){
                if(res.success){
                    self.yesList = res.data
                    self.yesCount = res.data.total
                }
            })
        },
        loadNoList(){
            let self = this
            let projectId = this.$route.query.id
            let id = this.currentPingFen.id
            //评分标准已选参评灯参列表
            this.$http.postObj('/api/contrast/evaluate/select/'+projectId+'/'+id,{},function(res){
                if(res.success){
                    self.noList = res.data
                }
            })
        },
        handleCurrentChangeYes(page){
            this.loadYesList(page)
        },
        handleSelectionChangeYes(val){
            this.checkboxYes = val;
        },
        handleSelectionChangeNo(val){
            this.checkboxNo = val;
        },
        YesAdd(){
            if(this.checkboxYes.length == 0){
                this.$message.error('请选择可选灯参！')
                return false;
            }
            let id = this.currentPingFen.id
            var ids = ''
            for(var i = 0;i<this.checkboxYes.length;i++){
                ids += this.checkboxYes[i].lampparamId + ","
            }
             ids = ids.substr(0,ids.length-1)
            let self = this
            //19.评分标准添加参评灯参
            this.$http.postQuery('/api/contrast/evaluate/lampparam/'+id,{lampparamIds:ids},function(res){
                
                if(res.success){
                    self.userRoledialog = false
                    self.$message({
                        message: "操作成功！",
                        type: "success"
                    })
                    self.loadYesList(1)
                    self.loadNoList(1)
                    self.pingfenList1(1)
                }else{
                    self.$message.error(res.data)
                }
            })
        },
        NoRemove(){
            if(this.checkboxNo.length == 0){
                this.$message.error('请选择已选灯参！')
                return false;
            }
            
            let id = this.currentPingFen.id
            var ids = ''
            for(var i = 0;i<this.checkboxNo.length;i++){
                ids += this.checkboxNo[i].lampparamId + ","
            }
            let self = this
            ids = ids.substr(0,ids.length-1)
            //分标准 删除
            this.$http.deletePath('/api/contrast/evaluate/lampparam/'+id,{lampparamIds:ids},function(res){
                
                if(res.success){
                    self.userRoledialog = false
                    self.$message({
                        message: "操作成功！",
                        type: "success"
                    })
                    self.loadYesList(1)
                    self.loadNoList(1)
                    self.pingfenList1(1)
                }else{
                    self.$message.error(res.data)
                }
            })
        },
        editPingFen(row){
            this.showAddPingFenView()
            let self = this
            this.$http.get('/api/contrast/evaluate/view/'+row.id,{},function(res){
                if(res.success){
                    self.editPingFenRow = res.data
                    self.evaluateAddViewcalculateType = res.data.calculateType
                    var slist = res.data.evaluateStandList
                    for(var i = 0;i<slist.length;i++){
                        //查找下拉框有没有这个值
                        let selItem = _.find(self.pingfenSelList,function(o){return o.attrName == slist[i].evaluateIndex})
                        console.log(selItem)
                        if(selItem != undefined){
                            self.choosePingFenXiang.push(selItem.indexName)
                            self.pingfenTableData2.push({
                                evaluateIndex:selItem.attrName,
                                evaluateText:selItem.indexName,
                                highScore:slist[i].highScore,
                                highIndexScore:slist[i].highIndexScore,
                                lowScore:slist[i].lowScore,
                                lowIndexScore:slist[i].lowIndexScore,
                                weightScale:slist[i].weightScale,
                            })
                        }
                    }
                }
            })
        },
        deletePingFen(row){
            let self = this;
            this.$confirm('您确定要删除吗?','提示',{
                    confirmButtonText: '确认',
                    cancelButtonText: '取消',
                    type: 'warning'
            }).then(()=>{
                this.$http.deletePath('/api/contrast/evaluate/'+row.id,{},function(res){
                    if (res.success) {
                        self.$message({
                            message: "删除成功！",
                            type: "success"
                        });
                        self.pingfenList1(1)
                    }else{
                        self.$message.error(res.data)
                    }
                })
            }).catch(()=>{});
        }
    },
    mounted(){
        this.$nextTick(function () {
            this.sdefc2 = window.innerHeight - 370;
            this.sdefc = window.innerHeight - 588;
               
            var wh1 = window.innerWidth;
                if(wh1 < 1548){
                    self.sdefc = window.innerHeight - 468
                    self.sdefc2 = window.innerHeight - 420
                }
                if(wh1 < 1450){
                    self.sdefc2 = window.innerHeight - 490;
                    self.sdefc = window.innerHeight - 550;
                }
                
                 if(wh1 < 1374){
                    self.sdefc2 = window.innerHeight - 400;
                    self.sdefc = window.innerHeight - 512;
                }
            
            
            // 监听窗口大小变化
            let self = this;
            window.onresize = function() {
                var wh = window.innerWidth;
                if(wh < 1548){
                    self.sdefc = window.innerHeight - 468
                    self.sdefc2 = window.innerHeight - 420
                }
                if(wh < 1450){
                    self.sdefc2 = window.innerHeight - 440;
                    self.sdefc = window.innerHeight - 540;
                }
                
                 if(wh < 1374){
                    self.sdefc2 = window.innerHeight - 400;
                    self.sdefc = window.innerHeight - 512;
                }
                
            }
        })
    }
}
</script>
<style  rel="stylesheet/scss" lang="scss">
 

.contrast{
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    background: rgba(0,0,0,0.5);
    z-index: -1;
    opacity: 0;
    display: none;
    &.active{
      opacity: 1;
      z-index: 999999;
      display: block;
    }
    .contrast_cont{
        display: inline-block;
        max-width: 1100px;
        max-height: 90vh;
        width: 100%;
        padding-bottom: 10px;
        vertical-align: middle;
        background-color: #fff;
        border-radius: 4px;
        border: 1px solid #ebeef5;
        font-size: 18px;
        box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
        text-align: left;
        overflow: hidden;
        backface-visibility: hidden;
        padding: 0;
        .lt_rt{
            display: box;
            display: -webkit-box;
            display: -moz-box;
            display: -o-box;
            position: relative;
            .rt_ct{
                width: 50%;
                padding: 10px 20px;
                position: relative;
                table{
                  width: 100%;
                  td{
                    font-size: 14px;
                    text-align: center;
                  }
                } 
                .el-icon-close{
                    float: right;
                   font-size: 20px;
                   cursor: pointer;
                   position: relative;
                }
                .p1{
                  font-size: 12px;
                  margin-bottom: 5px;
                }
                .cont{
                    position: relative;
                    margin-top: 18px;
                    display: block;
                     .set{
                         position: absolute;
                         text-align: right;
                         right: 0;
                         top: 70px;
                         color: #333333;
                     }
                    .xian{
                        color: #333333;
                        position: relative;
                        padding: 0px 0 6px;
                        border-bottom: 2px solid #eeeeee;
                        span{
                            position: absolute;
                            right: 0;
                            top: 0;
                            font-size: 14px;
                            cursor: pointer;
                        }
                        .xian_rt{
                            float: right;
                            font-size: 14px;
                             position: absolute;
                            right: 0;
                            top: 0;
                            span{
                                position: initial;
                                color: #208cc6;
                            }
                        }
                    }
                    ul{
                        margin: 5px 0 15px;
                        position: relative;
                        li{
                            width: 50%;
                            display: inline-block;
                            font-size: 12px;
                            margin-bottom: 2px;
                            color: #333333;
                            line-height: 1em;
                            margin-right: 0;
                            span:first-child{
                                color: #000;
                                font-weight: bold
                            }
                            span{
                              span{
                                color: #333333 !important;
                                font-weight: 500 !important
                              }
                            }
                        }
                    }
                }
                .bottm{
                    text-align: center;
                        margin-top: 20px;
                    button{
                        background-color: #eeeeee;
                        font-size: 12px;
                            padding: 7px 15px;
                    }

                }   
            }
            .lt_ct{
                width: 50%;
                background-color: #f8f8f8;
                padding: 20px;
                position: relative;
                .top{
                    margin-bottom: 15px;
                    background: none;
                    padding: 0;
                    span{
                        color: #666666;
                        margin-right: 12px;
                        &:nth-child(1),&:nth-child(3){
                            color: #208cc6;
                        }
                        &:last-child{
                            float: right;
                            font-size: 12px;
                            margin-right:0;
                            img{
                                position: relative;
                                top: 2px;
                                margin-right: 5px;
                                display: inline-block;
                            }
                        }
                    }
                }
                .cents{
                  position: relative;
                  .cents_s{
                    height: 44vh;
                  }
                    .cout_list{
                      height: 100%;
                      .gallery-top-box{
                          height: 100%;
                      }
                      .swiper-button-next, .swiper-button-prev{
                        background: rgba(0, 0, 0, 0.3) url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E");
                        top: auto !important;
                        margin-top: 0 !important;
                        bottom: 0;
                        height: 50px;
                        background-size: 12px !important;
                        background-position: center !important;
                        background-repeat: no-repeat !important;
                      }
                       .swiper-button-prev{
                           background: rgba(0, 0, 0, 0.3) url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E");
                       }
                      .gallery-thumbs-box,.swiper-container,.swiper-wrapper{
                        height: 100%;
                      }
                      .swiper-slide{
                        height: 100%;
                      }
                        img{
                           max-height: 44vh;
                        }
                    }
                    .cent_ss{
                        overflow: auto;
                        margin-top: 16px;
                        padding: 0 38px;
                        li{
                            display: inline-block;
                            border-radius: 4px;
                            overflow: hidden;
                            margin-right: 10px;
                        }
                    }
                }
                .bom{
                    margin-top: 20px;
                    text-align: center;
                }
                 .bottm{
                    text-align: center;
                    margin-top: 20px;
                    a{
                        background-color: #5a63a3;
                            border-radius: 4px;
                        color: #fff;
                        font-size: 12px;
                            padding: 10px 22px;
                    }

                }           
            }
        }
    }
}
.bomTs {
    div{
         display: inline-block;
        margin-right: 10px;
        &.sp1{
            display: inline-block;
            margin-right: 0;
        }
    }
}
.el-table .firstRow{
    background:#f8e7a0;
}
.el-table .blurRow{
    background:#c6ebf4;
}
.bianhao{
                    color: #238fcb;
                    cursor: pointer;
                }
.pfxsd{
    .cell{
        .btn{
            span{
                border: 1px solid #ccc;
                padding: 2px 5px;
                display: inline-block;
                border-radius: 4px;
                line-height: 1;
                &:hover{
                    background: #5962a3;
                    color: #fff;
                    border-color: #5962a3;
                }
            }
        }
    }
    .btn{
        text-align: center;
        span{
            margin: 0 5px;
            cursor: pointer;
           
        }
    }
    .dialog-footer{
        margin: 20px 0 0;
        display: block;
        text-align: center;
        .el-button{
            background-color: #5962a3;
            color: #fff;
            border: none;
        }
    }
    .lt_cont{
        .el-button{
            padding: 5px 10px;
        }
    }
    .dewd{
        .el-button--primary{
            background-color: #5962a3;
            color: #fff;
            border: none;
        }
    }
    .pfxsd_ls{
        width: calc(50% - 5px);
        .cont{
            padding-right: 50px;
            position: relative;
            .click{
                position: absolute;
                right: 0;
                bottom: 0;
                cursor: pointer;
            }
        }
    }
}
.zjyq{
    .el-dialog__body{
        padding: 10px 20px;
        .addcustom_cont{
            .el-form-item{
                margin-bottom: 0;
            }
        }
        .cont{
            padding: 15px 0;
            .title{
                margin-right: 12px;
            }
            span{
                border: 1px solid #ccc;
                padding: 0 5px;
                display: inline-block;
                margin-right: 5px;
                border-radius: 4px;
            }
        }
    }
}
.tonglei{
    width: 860px;
    .el-table--border th{
            background-color: #f6f7fb;
    }
}
.addcustom{
    .el-dialog__header{
        background-color: #5962a3;
        .el-dialog__title{
            color: #fff;
        }
    }
}
.addcustomdy.el-dialog{
    width: 860px;
    &.riqi{
        width: 500px;
        .desazx .el-select{
            width: 100%;
        }
    }
    .lt_cont{
        margin-bottom: 12px;
    }
    .el-dialog__header{
        background-color: #5962a3;
        .el-dialog__title{
            color: #fff;
        }
    }
    .el-table__header-wrapper{
        tr{
            th{
                background-color: #f5f6fd;
            }
        }
    }
}
.scaling{
    margin-top: 88px;
    .top{
        background-color: #5962a3;
        padding: 18px 40px;
        color: #fff;
        font-size: 20px;
        .title{
            color: rgb(204, 204, 204);
        }
        .cont{
            .lt{
                .rte{
                    float:right
                }
            }
        }
    }
    .crnot{
        padding: 20px;
        height: calc(100vh - 150px);
        height: -webkit-calc(100vh - 150px);
        .el-form {
            max-height: 70vh;
            overflow: auto;
        }
        .xcdxzz{
             .el-form {
            max-height: 600px;
            overflow: auto;
        }
        }
        .cont{
            display: flex;
            display: -webkit-flex;
            height: 100%;
        }
        .lt{
            width: 34%;
            margin-right: 15px;
            border: 1px solid #ccc;
            padding: 10px;
            background-color: #fff;
            .el-form-item{
                margin-bottom: 10px;
                .el-form-item__content{
                    width: 100px;
                }
                &.witd1{
                   .el-form-item__content{
                        width: 112px;
                    } 
                }
            }
            .desz{
                width: 100%;
                margin-bottom: 0;
                span{
                    display: inline-block;
                    margin-right: 20px;
                    &.active{
                        color: #5962a3;
                        border-bottom: 1px solid #5962a3;
                        line-height: 1;
                    }
                }
            }
            .el-button--primary{
                background-color: #5962a3;
                color: #fff;
                border: none;
            }
            .lt_cont{
                margin-bottom: 8px;
                button{
                    background: none;
                    padding: 4px 10px;
                    box-shadow: none;
                }
            }
            .el-table--border{
                th{
                    background-color: #f6f7fb;
                    color: #555555;
                    text-align: center;
                }
                td{
                    text-align: center;
                    font-size: 12px;
                    &:last-child{
                        text-align: left;
                        position: relative;
                    }
                    .cmy{
                        position: relative;
                        text-align: center;
                        span{
                            display: inline-block;
                            width: calc(100% - 50px);
                            width: -webkit-calc(100% - 50px);
                            // overflow: hidden;
                            // white-space: nowrap;
                            // text-overflow: ellipsis;
                        }
                        .el-button{
                            padding: 5px 0;
                            font-size: 12px;
                            float: right;
                            text-align: center;
                            color: #5962a3;
                            border: none;
                            span{
                                width: 100%;
                            }
                        }
                        
                    }
                }
            }
        }
        .rt{
            border: 1px solid #ccc;
            background-color: #fff;
            padding: 10px;
            width: 64%;
            .el-form-item{
                margin-bottom: 10px;
            }
            .bom{
                overflow: hidden;
                margin: 10px auto;
                .bomlt{
                    width: auto;
                    float: left;
                    .sp1{
                        display: inline-block;margin-right: 10px;
                    }
                    .el-button{
                        background: none;
                        padding: 4px 10px;
                    }
                }
                .bomrt{
                    //  width: 388px;
                    float: right;
                    text-align: right;
                    li{
                        display: inline-block;
                        margin-left: 10px;
                        input{
                            position: relative;
                            top: 2px;
                        }
                    }
                }
            }
            th{
                background-color: #f6f7fb;
                color: #555555;
                text-align: center;
                font-size: 14px;
            }
            td{
                font-size: 12px;
                text-align: center;
            }
            .cme{
                margin-bottom: 8px;
                .cont{
                    margin-bottom: 8px;
                }
                span{
                    border: 1px solid #DCDFE6 ;
                    display: inline-block;
                    margin-left: 8px;
                    padding: 4px 7px;
                    border-radius: 3px;
                    font-size: 12px;
                    line-height: 1;
                }
            }
        }
    }
    .setyou{
        .witd{
            .el-form-item__content{
                .el-input__inner{
                    width: 100px;
                    padding: 0 40px 0 5px;
                }
                .el-input__suffix{
                    right: 0;
                }
            }
            &.witd2{
                .el-form-item__content{
                    .el-input__inner{
                         padding: 0 5px 0 5px;
                    }
                }
            }
        }
        .goglv{
            .el-form-item__content .el-input {
                width: 100px;
            }
             .el-form-item__content{
                .el-input__inner{
                    width: 100px;
                    padding: 0 17px 0 5px;
                }
                .el-input__suffix{
                    right: 0;
                }
            }
        }
    .power{
        .el-input{
            width: 86px !important;
            .el-input__inner{
                padding: 0 8px;
            }
        }
    }
}
.el-button--primary{
    background-color: #5962a3;
    color: #fff;
    border: none;
}
}
.bukong_bom_list_cont {
  position: relative;
  height: 360px;
  overflow: auto;
  margin-top: 18px;
  ul {
    li {
      float: left;
      width: 100px;
      text-align: center;
      background-color: #ffffff;
      margin: 5px;
      cursor: pointer;
      &.active{
        position: relative;
        .imgs{
           border: solid 1px #5962a3;
           position: relative;
           .el-upload-list__item-status-label{
            right: -17px;
            top: -7px;
            width: 46px;
            height: 26px;
            background: #5962a3;
            text-align: center;
            transform: rotate(45deg);
            box-shadow: 0 1px 1px #5962a3;
            display: block;
            .el-icon-check{
              color: #fff;
              position: absolute;
              right: 14px;
              top: 11px;
              transform:rotate(-50deg);
              -ms-transform:rotate(-50deg); 
              -moz-transform:rotate(-50deg); 
              -webkit-transform:rotate(-50deg); 
              -o-transform:rotate(-50deg);
            }
          }
        }
        p{
          color: #5962a3;
        }
      }
      .imgs {
        height: 90px;
        border: solid 1px #dcdcdc;
        border-radius: 4px;
        overflow: hidden;
        .BoxTable{
          height: 90px;
        }
        img{
             max-width: 90px !important;
             max-height: 80px;
           }
      }
      p {
        color: #333;
      }
    }
  }
}
.bukong_bom_list_search {
  .el-form-item__content {
    width: 300px;
    .el-input{
      width: 200px;
    }
    button{
          background-color: #5a63a3;
          border:none;
          color: #fff;
          padding: 0px 20px;
          height: 36px;
          line-height: 36px;
          margin-left: 10px;
          border-radius: 5px;
    }
  }
}
.desazx  .el-form{
    max-height: none;
}
</style> 